implement object rest/spread (#2265)

- improve parse errors for destructuring spread elements
- `unsafe` for object literals with rest elements

Miscellaneous
- increase mocha unicode surrogate test timeout
This commit is contained in:
kzc
2017-08-02 01:47:58 -04:00
committed by Alex Lam S.L
parent f54ab16843
commit 4700c14855
5 changed files with 117 additions and 16 deletions

View File

@@ -146,6 +146,7 @@ describe("Unicode", function() {
if (semver.satisfies(process.version, ">=4")) {
it("Should not unescape unpaired surrogates", function() {
this.timeout(5000);
var code = [];
for (var i = 0; i <= 0x20001; i++) {
code.push("\\u{" + i.toString(16) + "}");