-
Notifications
You must be signed in to change notification settings - Fork 28.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src,inspector: fix empty MaybeLocal crash
- Loading branch information
Roy Van Liew
committed
May 4, 2022
1 parent
f9322f3
commit bdaef16
Showing
2 changed files
with
24 additions
and
4 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,20 @@ | ||
'use strict'; | ||
const common = require('../common'); | ||
|
||
if (process.config.variables.arm_version === '7') { | ||
common.skip('Too slow for armv7 bots'); | ||
} | ||
|
||
// The process should not crash when the REPL receives the string, 'ss'. | ||
// Test for https://github.com/nodejs/node/issues/42407. | ||
|
||
const repl = require('repl'); | ||
|
||
const r = repl.start(); | ||
|
||
r.write('var buf = Buffer.from({length:200e6},(_,i) => i%256);\n'); | ||
r.write('var ss = buf.toString("binary");\n'); | ||
r.write('ss'); | ||
r.write('.'); | ||
|
||
r.close(); |