forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream'
- Loading branch information
Showing
8,452 changed files
with
327,639 additions
and
1,479,995 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
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
22 changes: 22 additions & 0 deletions
22
JSTests/microbenchmarks/regexp-anychar-character-classes.js
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,22 @@ | ||
(function() { | ||
var result = 0; | ||
var n = 1000000; | ||
let str1 = "1234 Abc123 5678 EOL"; | ||
for (let i = 0; i < n; ++i) { | ||
let re1 = /([\s\S]+?)Abc123([\s\S]+)EOL/; | ||
let re2 = /([\s\S]+)ABC123([\s\S]+)EOL/i; | ||
let re3 = /([\s\S]*?)Abc123([\s\S]+)EOL/; | ||
let re4 = /([\s\S]*)ABC123([\s\S]+)EOL/i; | ||
|
||
if (re1.test(str1)) | ||
++result; | ||
if (re2.test(str1)) | ||
++result; | ||
if (re3.test(str1)) | ||
++result; | ||
if (re4.test(str1)) | ||
++result; | ||
} | ||
if (result != n * 4) | ||
throw "Error: bad result: " + result; | ||
})(); |
18 changes: 18 additions & 0 deletions
18
JSTests/stress/clobber-new-index-reg-in-enumerator-next-update-index-and-mode.js
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,18 @@ | ||
|
||
let p = new Proxy(() => { }, { getOwnPropertyDescriptor: 0 }); | ||
|
||
function f2(a0) { | ||
for (let _ in a0) { | ||
return; | ||
} | ||
try { | ||
f2(f2); | ||
} catch { } | ||
f2([0]); | ||
f2(p); | ||
} | ||
|
||
try { | ||
f2(); | ||
} catch (e) { | ||
} |
Oops, something went wrong.