mirror of
				https://github.com/bellard/quickjs.git
				synced 2025-05-29 01:49:18 +08:00 
			
		
		
		
	fixed Regexp.prototype[Symbol.match]
This commit is contained in:
		
							parent
							
								
									071a4cf986
								
							
						
					
					
						commit
						8b2a1249a4
					
				@ -45369,7 +45369,7 @@ static JSValue js_regexp_Symbol_match(JSContext *ctx, JSValueConst this_val,
 | 
				
			|||||||
            if (JS_IsException(matchStr))
 | 
					            if (JS_IsException(matchStr))
 | 
				
			||||||
                goto exception;
 | 
					                goto exception;
 | 
				
			||||||
            isEmpty = JS_IsEmptyString(matchStr);
 | 
					            isEmpty = JS_IsEmptyString(matchStr);
 | 
				
			||||||
            if (JS_SetPropertyInt64(ctx, A, n++, matchStr) < 0)
 | 
					            if (JS_DefinePropertyValueInt64(ctx, A, n++, matchStr, JS_PROP_C_W_E | JS_PROP_THROW) < 0)
 | 
				
			||||||
                goto exception;
 | 
					                goto exception;
 | 
				
			||||||
            if (isEmpty) {
 | 
					            if (isEmpty) {
 | 
				
			||||||
                int64_t thisIndex, nextIndex;
 | 
					                int64_t thisIndex, nextIndex;
 | 
				
			||||||
 | 
				
			|||||||
@ -17,7 +17,6 @@ test262/test/staging/sm/RegExp/constructor-ordering-2.js:15: Test262Error: Expec
 | 
				
			|||||||
test262/test/staging/sm/RegExp/regress-613820-1.js:13: Test262Error: Expected SameValue(«"aaa"», «"aa"») to be true
 | 
					test262/test/staging/sm/RegExp/regress-613820-1.js:13: Test262Error: Expected SameValue(«"aaa"», «"aa"») to be true
 | 
				
			||||||
test262/test/staging/sm/RegExp/regress-613820-2.js:13: Test262Error: Expected SameValue(«"f"», «undefined») to be true
 | 
					test262/test/staging/sm/RegExp/regress-613820-2.js:13: Test262Error: Expected SameValue(«"f"», «undefined») to be true
 | 
				
			||||||
test262/test/staging/sm/RegExp/regress-613820-3.js:13: Test262Error: Expected SameValue(«"aab"», «"aa"») to be true
 | 
					test262/test/staging/sm/RegExp/regress-613820-3.js:13: Test262Error: Expected SameValue(«"aab"», «"aa"») to be true
 | 
				
			||||||
test262/test/staging/sm/String/match-defines-match-elements.js:52: Test262Error: Expected SameValue(«true», «false») to be true
 | 
					 | 
				
			||||||
test262/test/staging/sm/TypedArray/constructor-buffer-sequence.js:73: Error: Assertion failed: expected exception ExpectedError, got Error: Poisoned Value
 | 
					test262/test/staging/sm/TypedArray/constructor-buffer-sequence.js:73: Error: Assertion failed: expected exception ExpectedError, got Error: Poisoned Value
 | 
				
			||||||
test262/test/staging/sm/TypedArray/prototype-constructor-identity.js:17: Test262Error: Expected SameValue(«2», «6») to be true
 | 
					test262/test/staging/sm/TypedArray/prototype-constructor-identity.js:17: Test262Error: Expected SameValue(«2», «6») to be true
 | 
				
			||||||
test262/test/staging/sm/TypedArray/set-detached-bigint.js:27: Error: Assertion failed: expected exception SyntaxError, got RangeError: invalid array length
 | 
					test262/test/staging/sm/TypedArray/set-detached-bigint.js:27: Error: Assertion failed: expected exception SyntaxError, got RangeError: invalid array length
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user