This repository has been archived by the owner on Oct 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Fixed unit test for chakra engine
There are certain unittest that depends specifically on v8 internals / error message. This change adds if-else to expect different error message for chakra engine or skip running test case if it test v8 internals not present in chakra.
- Loading branch information
1 parent
889af37
commit 49bb95d
Showing
52 changed files
with
285 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
RangeError: Invalid input | ||
at error (punycode.js:67:*) | ||
at decode (punycode.js:*:*) | ||
at Anonymous function (*test*message*core_line_numbers.js:*:*) | ||
at Module.prototype._compile (module.js:*:*) | ||
at Module._extensions[.js] (module.js:*:*) | ||
at Module.prototype.load (module.js:*:*) | ||
at Module._load (module.js:*:*) | ||
at Module.runMain (module.js:*:*) | ||
at startup (node.js:*:*) | ||
at Anonymous function (node.js:*:*) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Exiting with code=1 | ||
AssertionError: 1 == 2 | ||
at Anonymous function (*test*message*error_exit.js:*:*) | ||
at Module.prototype._compile (module.js:*:*) | ||
at Module._extensions[.js] (module.js:*:*) | ||
at Module.prototype.load (module.js:*:*) | ||
at Module._load (module.js:*:*) | ||
at Module.runMain (module.js:*:*) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
ReferenceError: 'undefined_reference_error_maker' is undefined | ||
at Anonymous function (*test*message*nexttick_throw.js:*:*) | ||
at nextTickCallbackWith0Args (node.js:*:*) | ||
at _tickCallback (node.js:*:*) | ||
at Module.runMain (module.js:*:*) | ||
at startup (node.js:*:*) | ||
at Anonymous function (node.js:*:*) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
before | ||
Error: Out of stack space |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
MyCustomError: This is a custom message |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
before | ||
[object Object] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[object Object] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
null |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
undefined |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ReferenceError: 'undefined_reference_error_maker' is undefined | ||
at Anonymous function (*test*message*timeout_throw.js:*:*) | ||
at listOnTimeout (timers.js:*:*) |
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
test/message/undefined_reference_in_new_context.chakracore.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
before | ||
TypeError: Unable to set property 'bar' of undefined or null reference | ||
at Global code (evalmachine.<anonymous>:1:1) | ||
at Script.prototype.runInNewContext (vm.js:*) | ||
at exports.runInNewContext (vm.js:*) | ||
at Anonymous function (*test*message*undefined_reference_in_new_context.js:*) | ||
at Module.prototype._compile (module.js:*:*) | ||
at Module._extensions[.js] (module.js:*:*) | ||
at Module.prototype.load (module.js:*:*) | ||
at Module._load (module.js:*:*) | ||
at Module.runMain (module.js:*:*) | ||
at startup (node.js:*:*) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
beginning | ||
SyntaxError: Expected identifier | ||
at exports.runInThisContext (vm.js:*) | ||
at Anonymous function (*test*message*vm_display_syntax_error.js:*) | ||
at Module.prototype._compile (module.js:*) | ||
at Module._extensions[.js] (module.js:*) | ||
at Module.prototype.load (module.js:*) | ||
at Module._load (module.js:*) | ||
at Module.runMain (module.js:*) | ||
at startup (node.js:*) | ||
at Anonymous function (node.js:*) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
beginning | ||
middle | ||
SyntaxError: Expected identifier | ||
at exports.runInThisContext (vm.js:*) | ||
at Anonymous function (*test*message*vm_dont_display_syntax_error.js:*) | ||
at Module.prototype._compile (module.js:*) | ||
at Module._extensions[.js] (module.js:*) | ||
at Module.prototype.load (module.js:*) | ||
at Module._load (module.js:*) | ||
at Module.runMain (module.js:*) | ||
at startup (node.js:*) | ||
at Anonymous function (node.js:*) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.