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 — assert: fix deepEqual regression by teppeis · Pull Request #193 · nodejs/node

Conversation

@teppeis

@teppeis teppeis commented Dec 21, 2014

Copy link
Copy Markdown
Contributor

Change of Object.keys in ES6 breaks assert.deepEqual about primitive values.
V8: https://code.google.com/p/v8/issues/detail?id=3443
Previously deepEqual depends on Object.key that throws an error for a primitive value, but now it does not throw.

Following tests should not pass, but pass currently.

assert.deepEqual('a', ['a']);
assert.deepEqual('a', {0: 'a'});
assert.deepEqual(1, {});
assert.deepEqual(true, {});

This patch fix them.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@teppeis
assert: fix deepEqual regression
f6dd8a2
Change of Object.keys in ES6 breaks assert.deepEqual about primitive
values.

V8: https://code.google.com/p/v8/issues/detail?id=3443

Previously deepEqual depends on Object.key that throws an error for
a primitive value, but now Object.key does not throw.
bnoordhuis pushed a commit that referenced this pull request Dec 22, 2014
@teppeis @bnoordhuis
assert: fix deepEqual regression
00a7456
Change of Object.keys in ES6 breaks assert.deepEqual about primitive
values.

V8: https://code.google.com/p/v8/issues/detail?id=3443

Previously deepEqual depends on Object.key that throws an error for
a primitive value, but now Object.key does not throw.

PR-URL: #193
Reviewed-By: Ben Noordhuis <[email protected]>
@bnoordhuis

bnoordhuis commented Dec 22, 2014

Copy link
Copy Markdown
Member

Thanks, landed in 00a7456. Just a nit: could you sign your patches with your real name next time? Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bnoordhuis bnoordhuis closed this Dec 22, 2014
@teppeis
teppeis deleted the es6-object-keys-breaks-assert branch December 23, 2014 16:32
@teppeis

teppeis commented Dec 23, 2014

Copy link
Copy Markdown
Contributor Author

thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@teppeis teppeis mentioned this pull request Dec 23, 2014
Fix deepEqual for ES6 Object.keys browserify/commonjs-assert#7
Merged
@rvagg rvagg mentioned this pull request Jan 3, 2015
governance: Add new Collaborators #234
Closed
@teppeis teppeis mentioned this pull request Aug 29, 2016
.eql() is broken in ES6 Automattic/expect.js#158
Open
jasongin pushed a commit to jasongin/nodejs that referenced this pull request Mar 23, 2017
@boingoing @jasongin
Convert all locals and parameter names to snake_case (nodejs#193)
fb8ced4
* Convert all locals and parameter names to snake_case

Standardize some parameter names across the N-API surface such as ```napi_env env``` and ```size_t length```. Make all the parameter names in the header match the cc file and expand some parameter names from single characters into meaningful words.

Also addresses a couple of minor PR feedback items:
 - Rename ```napi_reference_addref``` and ```napi_reference_release``` to ```napi_reference_ref``` and ```napi_reference_unref``` (respectively)
 - Rename ```Reference::AddRef``` and ```Reference::Release``` to ```Reference::Ref``` and ```Reference::Unref``` (respectively)
 - Remove ```napi_create_boolean```, ```napi_get_true```, and ```napi_get_false``` and replace them with ```napi_get_boolean```
 - Rename ```napi_get_type_of_value``` to ```napi_typeof```
 - Add a ```result_data``` out parameter to ```napi_create_buffer_copy``` which returns the data pointer of the new buffer
 - Change ```napi_get_value_string_utf8``` and ```napi_get_value_string_utf16``` to accept a null output buffer and return the length of the source string in that case via the ```result``` parameter
 - Remove ```napi_get_value_string_utf8_length``` and ```napi_get_value_string_utf16_length``` due to the above
 - Change ```Reference``` ctor and dtor to be protected and added public ```static Reference* Reference::New``` and ```static void Reference::Delete``` methods to make it more clear how the ```Reference``` objects are allocated and cleaned-up
 - Add a type check to ``napi_get_array_length``` which returns an error if the argument is not an array object
 - Change ```napi_create_symbol``` to take a ```napi_value``` instead of a ```const char*``` for the symbol description string. The API now throws if description is not a string but NULL is allowed.

* Remove UTF-8 BOM characters and other non-ANSI whitespace

* Change parameter names for create string APIs and address other feedback

* Fixes for unit tests

* Fix lint errors found via CI
boingoing added a commit to boingoing/node that referenced this pull request Apr 6, 2017
@boingoing
Convert all locals and parameter names to snake_case (nodejs#193)
9d9a625
* Convert all locals and parameter names to snake_case

Standardize some parameter names across the N-API surface such as ```napi_env env``` and ```size_t length```. Make all the parameter names in the header match the cc file and expand some parameter names from single characters into meaningful words.

Also addresses a couple of minor PR feedback items:
 - Rename ```napi_reference_addref``` and ```napi_reference_release``` to ```napi_reference_ref``` and ```napi_reference_unref``` (respectively)
 - Rename ```Reference::AddRef``` and ```Reference::Release``` to ```Reference::Ref``` and ```Reference::Unref``` (respectively)
 - Remove ```napi_create_boolean```, ```napi_get_true```, and ```napi_get_false``` and replace them with ```napi_get_boolean```
 - Rename ```napi_get_type_of_value``` to ```napi_typeof```
 - Add a ```result_data``` out parameter to ```napi_create_buffer_copy``` which returns the data pointer of the new buffer
 - Change ```napi_get_value_string_utf8``` and ```napi_get_value_string_utf16``` to accept a null output buffer and return the length of the source string in that case via the ```result``` parameter
 - Remove ```napi_get_value_string_utf8_length``` and ```napi_get_value_string_utf16_length``` due to the above
 - Change ```Reference``` ctor and dtor to be protected and added public ```static Reference* Reference::New``` and ```static void Reference::Delete``` methods to make it more clear how the ```Reference``` objects are allocated and cleaned-up
 - Add a type check to ``napi_get_array_length``` which returns an error if the argument is not an array object
 - Change ```napi_create_symbol``` to take a ```napi_value``` instead of a ```const char*``` for the symbol description string. The API now throws if description is not a string but NULL is allowed.

* Remove UTF-8 BOM characters and other non-ANSI whitespace

* Change parameter names for create string APIs and address other feedback

* Fixes for unit tests

* Fix lint errors found via CI
@snyk-bot snyk-bot mentioned this pull request Jan 20, 2023
[Snyk] Upgrade globals from 10.1.0 to 13.19.0 Supermajestcd/node#4
Open
@leonardoadame leonardoadame mentioned this pull request Jul 7, 2023
[Snyk] Fix for 4 vulnerabilities leonardoadame/node#63
Open
@maverick3312 maverick3312 mentioned this pull request Sep 28, 2023
[Snyk] Upgrade globals from 10.1.0 to 13.21.0 maverick3312/node#3
Open
@gr00nd gr00nd mentioned this pull request Feb 6, 2024
[Snyk] Upgrade globals from 10.1.0 to 13.24.0 gr00nd/node#10
Open
@AshdonG AshdonG mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities AshdonG/node#55
Open
@ZRDK ZRDK mentioned this pull request Feb 11, 2024
[Snyk] Security upgrade npm-registry-fetch from 13.3.1 to 15.0.0 ZRDK/node#54
Open
@dannybrown13 dannybrown13 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities dannybrown13/node#71
Open
@karencapiiro karencapiiro mentioned this pull request Feb 11, 2024
[Snyk] Security upgrade npm-registry-fetch from 13.3.1 to 15.0.0 karencapiiro/node#59
Open
@jefeaguila jefeaguila mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities jefeaguila/node#37
Open
@smclinden smclinden mentioned this pull request Feb 11, 2024
[Snyk] Security upgrade npm-registry-fetch from 14.0.5 to 15.0.0 smclinden/node#39
Open
@aliceUnhinged613 aliceUnhinged613 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities aliceUnhinged613/node#118
Open
@ambai ambai mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities ambai/node#63
Open
@buzzlightyear726 buzzlightyear726 mentioned this pull request Feb 11, 2024
[Snyk] Security upgrade npm-registry-fetch from 14.0.5 to 15.0.0 buzzlightyear726/node#37
Open
@AshdonG AshdonG mentioned this pull request Feb 11, 2024
[Snyk] Security upgrade npm-registry-fetch from 13.3.1 to 15.0.0 AshdonG/node#56
Open
@dewaynesmith3711 dewaynesmith3711 mentioned this pull request Feb 11, 2024
[Snyk] Security upgrade npm-registry-fetch from 11.0.0 to 15.0.0 dewaynesmith3711/node#65
Open
This was referenced Feb 11, 2024
[Snyk] Security upgrade npm-registry-fetch from 11.0.0 to 15.0.0 dannybrown13/node#73
Open
[Snyk] Security upgrade npm-registry-fetch from 11.0.0 to 15.0.0 dannybrown13/node#74
Open
[Snyk] Security upgrade npm-registry-fetch from 11.0.0 to 15.0.0 dannybrown13/node#75
Open
@ZRDK ZRDK mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities ZRDK/node#57
Open
This was referenced Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities buzzlightyear726/node#47
Open
[Snyk] Security upgrade npm-registry-fetch from 14.0.5 to 15.0.0 buzzlightyear726/node#48
Open
@baophucct baophucct mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities baophucct/node#46
Open
@kaocher82 kaocher82 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities Xtuden-com/node#44
Open
@sirinartk sirinartk mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities sirinartk/node#55
Open
@Supermajestcd Supermajestcd mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities Supermajestcd/node#23
Open
@ZRDK ZRDK mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities ZRDK/node#71
Open
This was referenced Feb 12, 2024
[Snyk] Security upgrade npm-registry-fetch from 14.0.5 to 15.0.0 smclinden/node#48
Open
[Snyk] Fix for 1 vulnerabilities smclinden/node#49
Open
@dannybrown13 dannybrown13 mentioned this pull request Feb 12, 2024
[Snyk] Security upgrade npm-registry-fetch from 11.0.0 to 15.0.0 dannybrown13/node#86
Open
@SanchitMahajan236 SanchitMahajan236 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities SanchitMahajan236/node#28
Open
@timzwit timzwit mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities timzwit/node#37
Open
@terrorizer1980 terrorizer1980 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities Exhorder6/node#29
Open
@smclinden smclinden mentioned this pull request Feb 12, 2024
[Snyk] Security upgrade npm-registry-fetch from 14.0.5 to 15.0.0 smclinden/node#50
Open
@myvali998 myvali998 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities myvali998/node#14
Open
@MrBrain295 MrBrain295 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities MrBrain295/node#32
Open
@buzzlightyear726 buzzlightyear726 mentioned this pull request Feb 12, 2024
[Snyk] Security upgrade npm-registry-fetch from 14.0.5 to 15.0.0 buzzlightyear726/node#50
Open
@nicholaschoi168 nicholaschoi168 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities nicholaschoi168/node#19
Open
@kissofire kissofire mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities kissofire/node#120
Open
@Michaela813 Michaela813 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities Michaela813/node#58
Open
@molllyn1 molllyn1 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities molllyn1/node#103
Open
@JoanKalanzi1 JoanKalanzi1 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities JoanKalanzi1/node#18
Open
@137717unity 137717unity mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities 137717unity/node#119
Open
@ambai ambai mentioned this pull request Feb 12, 2024
[Snyk] Security upgrade npm-registry-fetch from 13.3.1 to 15.0.0 ambai/node#74
Open
@luke7oaks luke7oaks mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities luke7oaks/node-1#45
Open
@GregorFendt GregorFendt mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities GregorFendt/node#32
Open
eti-p-doray pushed a commit to eti-p-doray/node that referenced this pull request Aug 28, 2024
@gahaas @victorgomes
Reverts v8#192 (nodejs#193)
346dbbe
* [wasi] Stop using V8 fast API

* Revert "[wasi] Stop using V8 fast API"

This reverts commit 0d5d171.

* Revert "[v8] Stop using deprecated fields of v8::FastApiCallbackOptions (nodejs#192)"

This reverts commit 286ed38.
syg pushed a commit to syg/node that referenced this pull request May 5, 2025
@gahaas pthier
Reverts v8#192 (nodejs#193)
e863578
* [wasi] Stop using V8 fast API

* Revert "[wasi] Stop using V8 fast API"

This reverts commit 0d5d171.

* Revert "[v8] Stop using deprecated fields of v8::FastApiCallbackOptions (nodejs#192)"

This reverts commit 286ed38.
@ghost ghost mentioned this pull request Mar 20, 2026
fix: reject primitive-vs-object comparisons in eql() Automattic/expect.js#177
Closed
bakkot pushed a commit to bakkot/node that referenced this pull request May 11, 2026
@gahaas pthier
Reverts v8#192 (nodejs#193)
18fc54b
* [wasi] Stop using V8 fast API

* Revert "[wasi] Stop using V8 fast API"

This reverts commit 0d5d171.

* Revert "[v8] Stop using deprecated fields of v8::FastApiCallbackOptions (nodejs#192)"

This reverts commit 286ed38.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@teppeis @bnoordhuis
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.