Skip to content

ASSERT(!a || jsvIsName(a)) FAILED AT src/jsparse.c:1604 #2365

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Limesss opened this issue May 10, 2023 · 0 comments
Closed

ASSERT(!a || jsvIsName(a)) FAILED AT src/jsparse.c:1604 #2365

Limesss opened this issue May 10, 2023 · 0 comments

Comments

@Limesss
Copy link

Limesss commented May 10, 2023

Reproduce:
make Debug=1
POC:

{
  let z = ({x: {y} = {y: 42}} = {}) => y;
  assertEquals(42, z());
}

{
  let z = ({x: [y] = [42]} = {}) => y;
  assertEquals(42, z());
}

details:
ASSERT(!a || jsvIsName(a)) FAILED AT src/jsparse.c:1604
#1[r1,l2] Object {
#2[r1,l2] Name String [1 blocks] "\xFF" #3[r1,l1] Object {
#6[r1,l2] Name String [1 blocks] "timers" #7[r2,l0] Array(0) [ ]
#8[r1,l2] Name String [1 blocks] "watches" #9[r2,l0] Array(0) [ ]
#51[r1,l2] Name String [1 blocks] "except" #45[r1,l0] Object {
#46[r1,l2] Name String [2 blocks] "proto" #42[r2,l0] ...

        #48[r1,l2] Name String [1 blocks] "message"              #36[r1,l0] String [1 blocks] "\"y\" is not defined"  
        #50[r1,l2] Name String [1 blocks] "type"              #49[r1,l0] String [1 blocks] "ReferenceError"  
      } 
    #52[r1,l2] Name String [1 blocks] "sTrace"          #53[r1,l0] String [4 blocks] " at line 6 col 17\n  let z = ({x: {y} = {y: 42}} = {}) => y;\n                ^\n"  
  } 
#11[r1,l2] Name String [1 blocks] "quit"      #10[r1,l0] NativeFunction 0x7c7bc100 (0) { } 
#37[r1,l2] Name String [2 blocks] "ReferenceError"      #39[r2,l0] NativeFunction 0x7c7c5730 (9) { 
    #40[r1,l2] Name String [2 blocks] "prototype"          #42[r2,l0] Object { 
        #43[r1,l2] Name String [2 blocks] "constructor"              #39[r2,l0] ...

      } 
  } 

}
EXITING.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant