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 — src: fix util abort · nodejs/node@49391a7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_util.cc
  • test/parallel
    • test-util.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node_util.cc‎

Copy file name to clipboardExpand all lines: src/node_util.cc
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,13 @@ using v8::Value;
3737

3838
#define V(_, ucname) \
3939
static void ucname(const FunctionCallbackInfo<Value>& args) { \
40-
CHECK_EQ(1, args.Length()); \
4140
args.GetReturnValue().Set(args[0]->ucname()); \
4241
}
4342

4443
VALUE_METHOD_MAP(V)
4544
#undef V
4645

4746
static void IsAnyArrayBuffer(const FunctionCallbackInfo<Value>& args) {
48-
CHECK_EQ(1, args.Length());
4947
args.GetReturnValue().Set(
5048
args[0]->IsArrayBuffer() || args[0]->IsSharedArrayBuffer());
5149
}
Collapse file

‎test/parallel/test-util.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-util.js
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,18 @@ assert.strictEqual(false, util.isArray(Object.create(Array.prototype)));
4343

4444
// isRegExp
4545
assert.strictEqual(true, util.isRegExp(/regexp/));
46-
assert.strictEqual(true, util.isRegExp(RegExp()));
46+
assert.strictEqual(true, util.isRegExp(RegExp(), 'foo'));
4747
assert.strictEqual(true, util.isRegExp(new RegExp()));
4848
assert.strictEqual(true, util.isRegExp(context('RegExp')()));
49+
assert.strictEqual(false, util.isRegExp());
4950
assert.strictEqual(false, util.isRegExp({}));
5051
assert.strictEqual(false, util.isRegExp([]));
5152
assert.strictEqual(false, util.isRegExp(new Date()));
5253
assert.strictEqual(false, util.isRegExp(Object.create(RegExp.prototype)));
5354

5455
// isDate
5556
assert.strictEqual(true, util.isDate(new Date()));
56-
assert.strictEqual(true, util.isDate(new Date(0)));
57+
assert.strictEqual(true, util.isDate(new Date(0), 'foo'));
5758
assert.strictEqual(true, util.isDate(new (context('Date'))()));
5859
assert.strictEqual(false, util.isDate(Date()));
5960
assert.strictEqual(false, util.isDate({}));

0 commit comments

Comments
0 (0)
You are visitor 01402775 — 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.