mirror of
https://github.com/nodejs/node.git
synced 2025-05-19 00:47:24 +00:00

Upgrade the bundled V8 and update code in src/ and lib/ to the new API. Notable backwards incompatible changes are the removal of the smalloc module and dropped support for CESU-8 decoding. CESU-8 support can be brought back if necessary by doing UTF-8 decoding ourselves. This commit includes https://codereview.chromium.org/1192973004 to fix a build error on python 2.6 systems. The original commit log follows: Use optparse in js2c.py for python compatibility Without this change, V8 won't build on RHEL/CentOS 6 because the distro python is too old to know about the argparse module. PR-URL: https://github.com/nodejs/io.js/pull/2022 Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
17 lines
874 B
Plaintext
17 lines
874 B
Plaintext
Tests for calling the constructors of ES6 classes
|
|
|
|
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
|
|
|
|
|
PASS new A did not throw exception.
|
|
PASS A() threw exception TypeError: Class constructors cannot be invoked without 'new'.
|
|
PASS new B did not throw exception.
|
|
PASS B() threw exception TypeError: Class constructors cannot be invoked without 'new'.
|
|
PASS new (class { constructor() {} })() did not throw exception.
|
|
PASS (class { constructor() {} })() threw exception TypeError: Class constructors cannot be invoked without 'new'.
|
|
PASS new (class extends null { constructor() { super() } })() threw exception TypeError: function () {} is not a constructor.
|
|
PASS (class extends null { constructor() { super() } })() threw exception TypeError: Class constructors cannot be invoked without 'new'.
|
|
PASS successfullyParsed is true
|
|
|
|
TEST COMPLETE
|