diff options
author | Tooru Fujisawa <arai_a@mac.com> | 2019-02-03 08:21:19 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-02-03 08:21:19 +0100 |
commit | ae4af7b7e598b4fec037254a1fd03ac3495695a4 (patch) | |
tree | 98d5420a48042e47b0d9971d30774b8c82d11486 /js/src/jit-test/tests/basic/function-tosource-getset.js | |
parent | 90f6b2704658a554a12ed3c37545cb6474fbcf51 (diff) | |
download | UXP-ae4af7b7e598b4fec037254a1fd03ac3495695a4.tar UXP-ae4af7b7e598b4fec037254a1fd03ac3495695a4.tar.gz UXP-ae4af7b7e598b4fec037254a1fd03ac3495695a4.tar.lz UXP-ae4af7b7e598b4fec037254a1fd03ac3495695a4.tar.xz UXP-ae4af7b7e598b4fec037254a1fd03ac3495695a4.zip |
Stage 1-4: Update tests
Diffstat (limited to 'js/src/jit-test/tests/basic/function-tosource-getset.js')
-rw-r--r-- | js/src/jit-test/tests/basic/function-tosource-getset.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/src/jit-test/tests/basic/function-tosource-getset.js b/js/src/jit-test/tests/basic/function-tosource-getset.js index 36c6d010e..1804d38f2 100644 --- a/js/src/jit-test/tests/basic/function-tosource-getset.js +++ b/js/src/jit-test/tests/basic/function-tosource-getset.js @@ -1,7 +1,7 @@ var o = {get prop() a + b, set prop(x) a + b}; var prop = Object.getOwnPropertyDescriptor(o, "prop"); -assertEq(prop.get.toString(), "function get prop() a + b"); -assertEq(prop.get.toSource(), "(function get prop() a + b)"); -assertEq(prop.set.toString(), "function set prop(x) a + b"); -assertEq(prop.set.toSource(), "(function set prop(x) a + b)"); -assertEq(o.toSource(), "({get prop () a + b, set prop (x) a + b})"); +assertEq(prop.get.toString(), "get prop() { a + b; }"); +assertEq(prop.get.toSource(), "get prop() { a + b; }"); +assertEq(prop.set.toString(), "set prop(x) { a + b; }"); +assertEq(prop.set.toSource(), "set prop(x) { a + b; }"); +assertEq(o.toSource(), "({get prop() { a + b; }, set prop(x) { a + b; }})"); |