GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — deps: V8: cherry-pick c1a54d5ffcd1 · nodejs/node@c8e1782

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • common.gypi
  • deps/v8/test/mjsunit/regress
    • regress-1320641.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎common.gypi‎

Copy file name to clipboardExpand all lines: common.gypi
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
# Reset this number to 0 on major V8 upgrades.
3838
# Increment by one for each non-official patch applied to deps/v8.
39-
'v8_embedder_string': '-node.10',
39+
'v8_embedder_string': '-node.12',
4040

4141
##### V8 defaults for Node.js #####
4242

Collapse file

‎deps/v8/test/mjsunit/regress/regress-1320641.js‎

Copy file name to clipboardExpand all lines: deps/v8/test/mjsunit/regress/regress-1320641.js
+17-5Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,21 @@ function foo(){
88
const xs = new Uint16Array(3775336418);
99
return xs[-981886074];
1010
}
11-
%PrepareFunctionForOptimization(foo);
12-
foo();
1311

14-
assertEquals(undefined, foo());
15-
%OptimizeFunctionOnNextCall(foo);
16-
assertEquals(undefined, foo());
12+
var skip = false;
13+
try {
14+
new Uint16Array(3775336418);
15+
} catch (e) {
16+
if (e.message.test(/Array buffer allocation failed/)) {
17+
skip = true; // We don't have enough memory, just skip the test.
18+
}
19+
}
20+
21+
if (!skip) {
22+
%PrepareFunctionForOptimization(foo);
23+
foo();
24+
25+
assertEquals(undefined, foo());
26+
%OptimizeFunctionOnNextCall(foo);
27+
assertEquals(undefined, foo());
28+
}

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.