Converted esprima's harmony tests.
This commit is contained in:
parent
937350dd84
commit
88e355a6ae
@ -1,5 +1,6 @@
|
||||
var driver = require("./driver.js");
|
||||
require("./tests.js");
|
||||
require("./tests-harmony.js");
|
||||
|
||||
var testsRun = 0, failed = 0;
|
||||
function report(state, code, message) {
|
||||
|
||||
15336
test/tests-harmony.js
Normal file
15336
test/tests-harmony.js
Normal file
File diff suppressed because it is too large
Load Diff
@ -28982,7 +28982,7 @@ testFail("for(const x = 0;;);", "Unexpected token (1:4)", {ecmaVersion: 6});
|
||||
Cat.prototype.roar = function(message) {
|
||||
return 'MEOOWW: ' + /*stuff*/ message;
|
||||
};
|
||||
}.toString(),
|
||||
}.toString().replace(/\r\n/g, '\n'),
|
||||
function assert(ast) {
|
||||
if (actualComments.length !== expectedComments.length) {
|
||||
return JSON.stringify(actualComments) + " !== " + JSON.stringify(expectedComments);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user