Implement Uint8Array to/from base64 #1211
Annotations
30 errors
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/alphabet.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/alphabet.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in /Users/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in /Users/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 157
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 77
01: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
02: // This code is governed by the BSD license found in the LICENSE file.
03: /*---
04: esid: sec-uint8array.frombase64
05: description: Conversion of base64 strings to Uint8Arrays exercising the alphabet option
06: includes: [compareArray.js]
07: features: [uint8array-base64, TypedArray]
08: ---*/
09:
10: assert.compareArray(Uint8Array.fromBase64('x+/y'), [199, 239, 242]);
11: assert.compareArray(Uint8Array.fromBase64('x+/y', { alphabet: 'base64' }), [199, 239, 242]);
12: assert.throws(SyntaxError, function() {
13: Uint8Array.fromBase64('x+/y', { alphabet: 'base64url' });
14: });
15:
16: assert.compareArray(Uint8Array.fromBase64('x-_y', { alphabet: 'base64url' }), [199, 239, 242]);
17: assert.throws(SyntaxError, function() {
18: Uint8Array.fromBase64('x-_y');
19: });
20: assert.throws(SyntaxError, function() {
21: Uint8Array.fromBase64('x-_y', { alphabet: 'base64' });
22: });
23:
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/alphabet.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/alphabet.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in /Users/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in /Users/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 157
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 77
01: "use strict";
02: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
03: // This code is governed by the BSD license found in the LICENSE file.
04: /*---
05: esid: sec-uint8array.frombase64
06: description: Conversion of base64 strings to Uint8Arrays exercising the alphabet option
07: includes: [compareArray.js]
08: features: [uint8array-base64, TypedArray]
09: ---*/
10:
11: assert.compareArray(Uint8Array.fromBase64('x+/y'), [199, 239, 242]);
12: assert.compareArray(Uint8Array.fromBase64('x+/y', { alphabet: 'base64' }), [199, 239, 242]);
13: assert.throws(SyntaxError, function() {
14: Uint8Array.fromBase64('x+/y', { alphabet: 'base64url' });
15: });
16:
17: assert.compareArray(Uint8Array.fromBase64('x-_y', { alphabet: 'base64url' }), [199, 239, 242]);
18: assert.throws(SyntaxError, function() {
19: Uint8Array.fromBase64('x-_y');
20: });
21: assert.throws(SyntaxError, function() {
22: Uint8Array.fromBase64('x-_y', { alphabet: 'base64' });
23: });
24:
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/ignores-receiver.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/ignores-receiver.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in /Users/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in /Users/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintVariableDeclaration.ExecuteInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintVariableDeclaration.cs:line 99
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 77
01: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
02: // This code is governed by the BSD license found in the LICENSE file.
03: /*---
04: esid: sec-uint8array.frombase64
05: description: Uint8Array.fromBase64 ignores its receiver
06: features: [uint8array-base64, TypedArray]
07: ---*/
08:
09: var fromBase64 = Uint8Array.fromBase64;
10: var noReceiver = fromBase64("Zg==");
11: assert.sameValue(Object.getPrototypeOf(noReceiver), Uint8Array.prototype);
12:
13: class Subclass extends Uint8Array {
14: constructor() {
15: throw new Test262Error("subclass constructor called");
16: }
17: }
18: var fromSubclass = Subclass.fromBase64("Zg==");
19: assert.sameValue(Object.getPrototypeOf(fromSubclass), Uint8Array.prototype);
20:
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/ignores-receiver.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/ignores-receiver.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in /Users/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in /Users/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintVariableDeclaration.ExecuteInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintVariableDeclaration.cs:line 99
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 77
01: "use strict";
02: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
03: // This code is governed by the BSD license found in the LICENSE file.
04: /*---
05: esid: sec-uint8array.frombase64
06: description: Uint8Array.fromBase64 ignores its receiver
07: features: [uint8array-base64, TypedArray]
08: ---*/
09:
10: var fromBase64 = Uint8Array.fromBase64;
11: var noReceiver = fromBase64("Zg==");
12: assert.sameValue(Object.getPrototypeOf(noReceiver), Uint8Array.prototype);
13:
14: class Subclass extends Uint8Array {
15: constructor() {
16: throw new Test262Error("subclass constructor called");
17: }
18: }
19: var fromSubclass = Subclass.fromBase64("Zg==");
20: assert.sameValue(Object.getPrototypeOf(fromSubclass), Uint8Array.prototype);
21:
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/illegal-characters.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/illegal-characters.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in /Users/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in /Users/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments) in /Users/runner/work/jint/jint/Jint/Native/Function/ScriptFunction.cs:line 78
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteSingle(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintBlockStatement.cs:line 72
at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteBlock(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintBlockStatement.cs:line 52
at Jint.Runtime.Interpreter.Statements.JintTryStatement.ExecuteInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintTryStatement.cs:line 33
at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments) in /Users/runner/work/jint/jint/Jint/Native/Function/ScriptFunction.cs:line 78
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments) in /Users/runner/work/jint/jint/Jint/Native/Function/ScriptFunction.cs:line 78
at Jint.Native.Array.ArrayPrototype.ForEach(JsValue thisObject, JsValue[] arguments) in /Users/runner/work/jint/jint/Jint/Native/Array/ArrayPrototype.cs:line 637
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionS
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/illegal-characters.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/illegal-characters.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in /Users/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in /Users/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments) in /Users/runner/work/jint/jint/Jint/Native/Function/ScriptFunction.cs:line 78
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteSingle(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintBlockStatement.cs:line 72
at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteBlock(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintBlockStatement.cs:line 52
at Jint.Runtime.Interpreter.Statements.JintTryStatement.ExecuteInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintTryStatement.cs:line 33
at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments) in /Users/runner/work/jint/jint/Jint/Native/Function/ScriptFunction.cs:line 78
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments) in /Users/runner/work/jint/jint/Jint/Native/Function/ScriptFunction.cs:line 78
at Jint.Native.Array.ArrayPrototype.ForEach(JsValue thisObject, JsValue[] arguments) in /Users/runner/work/jint/jint/Jint/Native/Array/ArrayPrototype.cs:line 637
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionS
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/last-chunk-handling.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/last-chunk-handling.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in /Users/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in /Users/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 157
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 77
01: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
02: // This code is governed by the BSD license found in the LICENSE file.
03: /*---
04: esid: sec-uint8array.frombase64
05: description: Handling of final chunks in Uint8Array.fromBase64
06: includes: [compareArray.js]
07: features: [uint8array-base64, TypedArray]
08: ---*/
09:
10: // padding
11: assert.compareArray(Uint8Array.fromBase64('ZXhhZg=='), [101, 120, 97, 102]);
12: assert.compareArray(Uint8Array.fromBase64('ZXhhZg==', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
13: assert.compareArray(Uint8Array.fromBase64('ZXhhZg==', { lastChunkHandling: 'stop-before-partial' }), [101, 120, 97, 102]);
14: assert.compareArray(Uint8Array.fromBase64('ZXhhZg==', { lastChunkHandling: 'strict' }), [101, 120, 97, 102]);
15:
16: // no padding
17: assert.compareArray(Uint8Array.fromBase64('ZXhhZg'), [101, 120, 97, 102]);
18: assert.compareArray(Uint8Array.fromBase64('ZXhhZg', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
19: assert.compareArray(Uint8Array.fromBase64('ZXhhZg', { lastChunkHandling: 'stop-before-partial' }), [101, 120, 97]);
20: assert.throws(SyntaxError, function() {
21: Uint8Array.fromBase64('ZXhhZg', { lastChunkHandling: 'strict' });
22: });
23:
24: // non-zero padding bits
25: assert.compareArray(Uint8Array.fromBase64('ZXhhZh=='), [101, 120, 97, 102]);
26: assert.compareArray(Uint8Array.fromBase64('ZXhhZh==', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
27: assert.compareArray(Uint8Array.fromBase64('ZXhhZh==', { lastChunkHandling: 'stop-before-partial' }), [101, 120, 97, 102]);
28: assert.throws(SyntaxError, function() {
29: Uint8Array.fromBase64('ZXhhZh==', { lastChunkHandling: 'strict' });
30: });
31:
32: // non-zero padding bits, no padding
33: assert.compareArray(Uint8Array.fromBase64('ZXhhZh'), [101, 120, 97, 102]);
34: assert.compareArray(Uint8Array.fromBase64('ZXhhZ
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/last-chunk-handling.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/last-chunk-handling.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in /Users/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in /Users/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 157
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 77
01: "use strict";
02: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
03: // This code is governed by the BSD license found in the LICENSE file.
04: /*---
05: esid: sec-uint8array.frombase64
06: description: Handling of final chunks in Uint8Array.fromBase64
07: includes: [compareArray.js]
08: features: [uint8array-base64, TypedArray]
09: ---*/
10:
11: // padding
12: assert.compareArray(Uint8Array.fromBase64('ZXhhZg=='), [101, 120, 97, 102]);
13: assert.compareArray(Uint8Array.fromBase64('ZXhhZg==', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
14: assert.compareArray(Uint8Array.fromBase64('ZXhhZg==', { lastChunkHandling: 'stop-before-partial' }), [101, 120, 97, 102]);
15: assert.compareArray(Uint8Array.fromBase64('ZXhhZg==', { lastChunkHandling: 'strict' }), [101, 120, 97, 102]);
16:
17: // no padding
18: assert.compareArray(Uint8Array.fromBase64('ZXhhZg'), [101, 120, 97, 102]);
19: assert.compareArray(Uint8Array.fromBase64('ZXhhZg', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
20: assert.compareArray(Uint8Array.fromBase64('ZXhhZg', { lastChunkHandling: 'stop-before-partial' }), [101, 120, 97]);
21: assert.throws(SyntaxError, function() {
22: Uint8Array.fromBase64('ZXhhZg', { lastChunkHandling: 'strict' });
23: });
24:
25: // non-zero padding bits
26: assert.compareArray(Uint8Array.fromBase64('ZXhhZh=='), [101, 120, 97, 102]);
27: assert.compareArray(Uint8Array.fromBase64('ZXhhZh==', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
28: assert.compareArray(Uint8Array.fromBase64('ZXhhZh==', { lastChunkHandling: 'stop-before-partial' }), [101, 120, 97, 102]);
29: assert.throws(SyntaxError, function() {
30: Uint8Array.fromBase64('ZXhhZh==', { lastChunkHandling: 'strict' });
31: });
32:
33: // non-zero padding bits, no padding
34: assert.compareArray(Uint8Array.fromBase64('ZXhhZh'), [101, 120, 97, 102]);
35: assert.compareArray(Uint8Array
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/option-coercion.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/option-coercion.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in /Users/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in /Users/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintVariableDeclaration.ExecuteInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintVariableDeclaration.cs:line 99
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 77
01: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
02: // This code is governed by the BSD license found in the LICENSE file.
03: /*---
04: esid: sec-uint8array.frombase64
05: description: Uint8Array.fromBase64 triggers effects of the "alphabet" and "lastChunkHandling" getters, but does not perform toString on the results
06: includes: [compareArray.js]
07: features: [uint8array-base64, TypedArray]
08: ---*/
09:
10: assert.throws(TypeError, function() {
11: Uint8Array.fromBase64("Zg==", { alphabet: Object("base64") });
12: });
13:
14: assert.throws(TypeError, function() {
15: Uint8Array.fromBase64("Zg==", { lastChunkHandling: Object("loose") });
16: });
17:
18:
19: var toStringCalls = 0;
20: var throwyToString = {
21: toString: function() {
22: toStringCalls += 1;
23: throw new Test262Error("toString called");
24: }
25: };
26: assert.throws(TypeError, function() {
27: Uint8Array.fromBase64("Zg==", { alphabet: throwyToString });
28: });
29: assert.sameValue(toStringCalls, 0);
30:
31: assert.throws(TypeError, function() {
32: Uint8Array.fromBase64("Zg==", { lastChunkHandling: throwyToString });
33: });
34: assert.sameValue(toStringCalls, 0);
35:
36:
37: var alphabetAccesses = 0;
38: var base64UrlOptions = {};
39: Object.defineProperty(base64UrlOptions, "alphabet", {
40: get: function() {
41: alphabetAccesses += 1;
42: return "base64url";
43: }
44: });
45: var arr = Uint8Array.fromBase64("x-_y", base64UrlOptions);
46: assert.compareArray(arr, [199, 239, 242]);
47: assert.sameValue(alphabetAccesses, 1);
48:
49: var lastChunkHandlingAccesses = 0;
50: var strictOptions = {};
51: Object.defineProperty(strictOptions, "lastChunkHandling", {
52: get: function() {
53: lastChunkHandlingAccesses += 1;
54: return "strict";
55: }
56: });
57: var arr = Uint8Array.fromBase64("Zg==", strictOptions);
58: assert.compareArray(arr, [102]);
59: assert.sameValue(lastChunkHandlingAccesses, 1);
60:
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/option-coercion.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/option-coercion.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in /Users/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in /Users/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintVariableDeclaration.ExecuteInternal(EvaluationContext context) in /Users/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintVariableDeclaration.cs:line 99
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /Users/runner/work/jint/jint/Jint/Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /Users/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 77
01: "use strict";
02: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
03: // This code is governed by the BSD license found in the LICENSE file.
04: /*---
05: esid: sec-uint8array.frombase64
06: description: Uint8Array.fromBase64 triggers effects of the "alphabet" and "lastChunkHandling" getters, but does not perform toString on the results
07: includes: [compareArray.js]
08: features: [uint8array-base64, TypedArray]
09: ---*/
10:
11: assert.throws(TypeError, function() {
12: Uint8Array.fromBase64("Zg==", { alphabet: Object("base64") });
13: });
14:
15: assert.throws(TypeError, function() {
16: Uint8Array.fromBase64("Zg==", { lastChunkHandling: Object("loose") });
17: });
18:
19:
20: var toStringCalls = 0;
21: var throwyToString = {
22: toString: function() {
23: toStringCalls += 1;
24: throw new Test262Error("toString called");
25: }
26: };
27: assert.throws(TypeError, function() {
28: Uint8Array.fromBase64("Zg==", { alphabet: throwyToString });
29: });
30: assert.sameValue(toStringCalls, 0);
31:
32: assert.throws(TypeError, function() {
33: Uint8Array.fromBase64("Zg==", { lastChunkHandling: throwyToString });
34: });
35: assert.sameValue(toStringCalls, 0);
36:
37:
38: var alphabetAccesses = 0;
39: var base64UrlOptions = {};
40: Object.defineProperty(base64UrlOptions, "alphabet", {
41: get: function() {
42: alphabetAccesses += 1;
43: return "base64url";
44: }
45: });
46: var arr = Uint8Array.fromBase64("x-_y", base64UrlOptions);
47: assert.compareArray(arr, [199, 239, 242]);
48: assert.sameValue(alphabetAccesses, 1);
49:
50: var lastChunkHandlingAccesses = 0;
51: var strictOptions = {};
52: Object.defineProperty(strictOptions, "lastChunkHandling", {
53: get: function() {
54: lastChunkHandlingAccesses += 1;
55: return "strict";
56: }
57: });
58: var arr = Uint8Array.fromBase64("Zg==", strictOptions);
59: assert.compareArray(arr, [102]);
60: assert.sameValue(lastChunkHandlingAccesses, 1);
61:
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/alphabet.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/alphabet.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in /home/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in /home/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 157
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in /home/runner/work/jint/jint/Jint/Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /home/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 77
01: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
02: // This code is governed by the BSD license found in the LICENSE file.
03: /*---
04: esid: sec-uint8array.frombase64
05: description: Conversion of base64 strings to Uint8Arrays exercising the alphabet option
06: includes: [compareArray.js]
07: features: [uint8array-base64, TypedArray]
08: ---*/
09:
10: assert.compareArray(Uint8Array.fromBase64('x+/y'), [199, 239, 242]);
11: assert.compareArray(Uint8Array.fromBase64('x+/y', { alphabet: 'base64' }), [199, 239, 242]);
12: assert.throws(SyntaxError, function() {
13: Uint8Array.fromBase64('x+/y', { alphabet: 'base64url' });
14: });
15:
16: assert.compareArray(Uint8Array.fromBase64('x-_y', { alphabet: 'base64url' }), [199, 239, 242]);
17: assert.throws(SyntaxError, function() {
18: Uint8Array.fromBase64('x-_y');
19: });
20: assert.throws(SyntaxError, function() {
21: Uint8Array.fromBase64('x-_y', { alphabet: 'base64' });
22: });
23:
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/alphabet.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/alphabet.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in /home/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in /home/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 157
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in /home/runner/work/jint/jint/Jint/Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /home/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 77
01: "use strict";
02: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
03: // This code is governed by the BSD license found in the LICENSE file.
04: /*---
05: esid: sec-uint8array.frombase64
06: description: Conversion of base64 strings to Uint8Arrays exercising the alphabet option
07: includes: [compareArray.js]
08: features: [uint8array-base64, TypedArray]
09: ---*/
10:
11: assert.compareArray(Uint8Array.fromBase64('x+/y'), [199, 239, 242]);
12: assert.compareArray(Uint8Array.fromBase64('x+/y', { alphabet: 'base64' }), [199, 239, 242]);
13: assert.throws(SyntaxError, function() {
14: Uint8Array.fromBase64('x+/y', { alphabet: 'base64url' });
15: });
16:
17: assert.compareArray(Uint8Array.fromBase64('x-_y', { alphabet: 'base64url' }), [199, 239, 242]);
18: assert.throws(SyntaxError, function() {
19: Uint8Array.fromBase64('x-_y');
20: });
21: assert.throws(SyntaxError, function() {
22: Uint8Array.fromBase64('x-_y', { alphabet: 'base64' });
23: });
24:
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/ignores-receiver.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/ignores-receiver.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in /home/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in /home/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintVariableDeclaration.ExecuteInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintVariableDeclaration.cs:line 99
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in /home/runner/work/jint/jint/Jint/Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /home/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 77
01: "use strict";
02: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
03: // This code is governed by the BSD license found in the LICENSE file.
04: /*---
05: esid: sec-uint8array.frombase64
06: description: Uint8Array.fromBase64 ignores its receiver
07: features: [uint8array-base64, TypedArray]
08: ---*/
09:
10: var fromBase64 = Uint8Array.fromBase64;
11: var noReceiver = fromBase64("Zg==");
12: assert.sameValue(Object.getPrototypeOf(noReceiver), Uint8Array.prototype);
13:
14: class Subclass extends Uint8Array {
15: constructor() {
16: throw new Test262Error("subclass constructor called");
17: }
18: }
19: var fromSubclass = Subclass.fromBase64("Zg==");
20: assert.sameValue(Object.getPrototypeOf(fromSubclass), Uint8Array.prototype);
21:
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/ignores-receiver.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/ignores-receiver.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in /home/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in /home/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintVariableDeclaration.ExecuteInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintVariableDeclaration.cs:line 99
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in /home/runner/work/jint/jint/Jint/Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /home/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 77
01: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
02: // This code is governed by the BSD license found in the LICENSE file.
03: /*---
04: esid: sec-uint8array.frombase64
05: description: Uint8Array.fromBase64 ignores its receiver
06: features: [uint8array-base64, TypedArray]
07: ---*/
08:
09: var fromBase64 = Uint8Array.fromBase64;
10: var noReceiver = fromBase64("Zg==");
11: assert.sameValue(Object.getPrototypeOf(noReceiver), Uint8Array.prototype);
12:
13: class Subclass extends Uint8Array {
14: constructor() {
15: throw new Test262Error("subclass constructor called");
16: }
17: }
18: var fromSubclass = Subclass.fromBase64("Zg==");
19: assert.sameValue(Object.getPrototypeOf(fromSubclass), Uint8Array.prototype);
20:
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/illegal-characters.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/illegal-characters.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in /home/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in /home/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments) in /home/runner/work/jint/jint/Jint/Native/Function/ScriptFunction.cs:line 78
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteSingle(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintBlockStatement.cs:line 72
at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteBlock(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintBlockStatement.cs:line 52
at Jint.Runtime.Interpreter.Statements.JintTryStatement.ExecuteInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintTryStatement.cs:line 33
at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments) in /home/runner/work/jint/jint/Jint/Native/Function/ScriptFunction.cs:line 78
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments) in /home/runner/work/jint/jint/Jint/Native/Function/ScriptFunction.cs:line 78
at Jint.Native.Array.ArrayPrototype.ForEach(JsValue thisObject, JsValue[] arguments) in /home/runner/work/jint/jint/Jint/Native/Array/ArrayPrototype.cs:line 637
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in /home/runner/work/jint/jint/Jint/Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /home/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/illegal-characters.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/illegal-characters.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in /home/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in /home/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments) in /home/runner/work/jint/jint/Jint/Native/Function/ScriptFunction.cs:line 78
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteSingle(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintBlockStatement.cs:line 72
at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteBlock(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintBlockStatement.cs:line 52
at Jint.Runtime.Interpreter.Statements.JintTryStatement.ExecuteInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintTryStatement.cs:line 33
at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments) in /home/runner/work/jint/jint/Jint/Native/Function/ScriptFunction.cs:line 78
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments) in /home/runner/work/jint/jint/Jint/Native/Function/ScriptFunction.cs:line 78
at Jint.Native.Array.ArrayPrototype.ForEach(JsValue thisObject, JsValue[] arguments) in /home/runner/work/jint/jint/Jint/Native/Array/ArrayPrototype.cs:line 637
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in /home/runner/work/jint/jint/Jint/Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /home/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/last-chunk-handling.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/last-chunk-handling.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in /home/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in /home/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 157
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in /home/runner/work/jint/jint/Jint/Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /home/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 77
01: "use strict";
02: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
03: // This code is governed by the BSD license found in the LICENSE file.
04: /*---
05: esid: sec-uint8array.frombase64
06: description: Handling of final chunks in Uint8Array.fromBase64
07: includes: [compareArray.js]
08: features: [uint8array-base64, TypedArray]
09: ---*/
10:
11: // padding
12: assert.compareArray(Uint8Array.fromBase64('ZXhhZg=='), [101, 120, 97, 102]);
13: assert.compareArray(Uint8Array.fromBase64('ZXhhZg==', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
14: assert.compareArray(Uint8Array.fromBase64('ZXhhZg==', { lastChunkHandling: 'stop-before-partial' }), [101, 120, 97, 102]);
15: assert.compareArray(Uint8Array.fromBase64('ZXhhZg==', { lastChunkHandling: 'strict' }), [101, 120, 97, 102]);
16:
17: // no padding
18: assert.compareArray(Uint8Array.fromBase64('ZXhhZg'), [101, 120, 97, 102]);
19: assert.compareArray(Uint8Array.fromBase64('ZXhhZg', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
20: assert.compareArray(Uint8Array.fromBase64('ZXhhZg', { lastChunkHandling: 'stop-before-partial' }), [101, 120, 97]);
21: assert.throws(SyntaxError, function() {
22: Uint8Array.fromBase64('ZXhhZg', { lastChunkHandling: 'strict' });
23: });
24:
25: // non-zero padding bits
26: assert.compareArray(Uint8Array.fromBase64('ZXhhZh=='), [101, 120, 97, 102]);
27: assert.compareArray(Uint8Array.fromBase64('ZXhhZh==', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
28: assert.compareArray(Uint8Array.fromBase64('ZXhhZh==', { lastChunkHandling: 'stop-before-partial' }), [101, 120, 97, 102]);
29: assert.throws(SyntaxError, function() {
30: Uint8Array.fromBase64('ZXhhZh==', { lastChunkHandling: 'strict' });
31: });
32:
33: // non-zero padding bits, no padding
34: assert.compareArray(Uint8Array.fromBase64('ZXhhZh'), [101, 120, 97, 102]);
35: assert.compareArray(Uint8Array.fromBase64('ZXhhZh', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
36: assert.compareArray(Uint8Array.fromBase64('ZXhhZh', { lastChunkHandling: 'stop-before-partial' }), [101, 120, 97]);
37
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/last-chunk-handling.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/last-chunk-handling.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in /home/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in /home/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 157
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintExpressionStatement.cs:line 24
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in /home/runner/work/jint/jint/Jint/Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /home/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 77
01: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
02: // This code is governed by the BSD license found in the LICENSE file.
03: /*---
04: esid: sec-uint8array.frombase64
05: description: Handling of final chunks in Uint8Array.fromBase64
06: includes: [compareArray.js]
07: features: [uint8array-base64, TypedArray]
08: ---*/
09:
10: // padding
11: assert.compareArray(Uint8Array.fromBase64('ZXhhZg=='), [101, 120, 97, 102]);
12: assert.compareArray(Uint8Array.fromBase64('ZXhhZg==', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
13: assert.compareArray(Uint8Array.fromBase64('ZXhhZg==', { lastChunkHandling: 'stop-before-partial' }), [101, 120, 97, 102]);
14: assert.compareArray(Uint8Array.fromBase64('ZXhhZg==', { lastChunkHandling: 'strict' }), [101, 120, 97, 102]);
15:
16: // no padding
17: assert.compareArray(Uint8Array.fromBase64('ZXhhZg'), [101, 120, 97, 102]);
18: assert.compareArray(Uint8Array.fromBase64('ZXhhZg', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
19: assert.compareArray(Uint8Array.fromBase64('ZXhhZg', { lastChunkHandling: 'stop-before-partial' }), [101, 120, 97]);
20: assert.throws(SyntaxError, function() {
21: Uint8Array.fromBase64('ZXhhZg', { lastChunkHandling: 'strict' });
22: });
23:
24: // non-zero padding bits
25: assert.compareArray(Uint8Array.fromBase64('ZXhhZh=='), [101, 120, 97, 102]);
26: assert.compareArray(Uint8Array.fromBase64('ZXhhZh==', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
27: assert.compareArray(Uint8Array.fromBase64('ZXhhZh==', { lastChunkHandling: 'stop-before-partial' }), [101, 120, 97, 102]);
28: assert.throws(SyntaxError, function() {
29: Uint8Array.fromBase64('ZXhhZh==', { lastChunkHandling: 'strict' });
30: });
31:
32: // non-zero padding bits, no padding
33: assert.compareArray(Uint8Array.fromBase64('ZXhhZh'), [101, 120, 97, 102]);
34: assert.compareArray(Uint8Array.fromBase64('ZXhhZh', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
35: assert.compareArray(Uint8Array.fromBase64('ZXhhZh', { lastChunkHandling: 'stop-before-partial' }), [101, 120, 97]);
36: assert.throws(Sy
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/option-coercion.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/option-coercion.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in /home/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in /home/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintVariableDeclaration.ExecuteInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintVariableDeclaration.cs:line 99
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in /home/runner/work/jint/jint/Jint/Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /home/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 77
01: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
02: // This code is governed by the BSD license found in the LICENSE file.
03: /*---
04: esid: sec-uint8array.frombase64
05: description: Uint8Array.fromBase64 triggers effects of the "alphabet" and "lastChunkHandling" getters, but does not perform toString on the results
06: includes: [compareArray.js]
07: features: [uint8array-base64, TypedArray]
08: ---*/
09:
10: assert.throws(TypeError, function() {
11: Uint8Array.fromBase64("Zg==", { alphabet: Object("base64") });
12: });
13:
14: assert.throws(TypeError, function() {
15: Uint8Array.fromBase64("Zg==", { lastChunkHandling: Object("loose") });
16: });
17:
18:
19: var toStringCalls = 0;
20: var throwyToString = {
21: toString: function() {
22: toStringCalls += 1;
23: throw new Test262Error("toString called");
24: }
25: };
26: assert.throws(TypeError, function() {
27: Uint8Array.fromBase64("Zg==", { alphabet: throwyToString });
28: });
29: assert.sameValue(toStringCalls, 0);
30:
31: assert.throws(TypeError, function() {
32: Uint8Array.fromBase64("Zg==", { lastChunkHandling: throwyToString });
33: });
34: assert.sameValue(toStringCalls, 0);
35:
36:
37: var alphabetAccesses = 0;
38: var base64UrlOptions = {};
39: Object.defineProperty(base64UrlOptions, "alphabet", {
40: get: function() {
41: alphabetAccesses += 1;
42: return "base64url";
43: }
44: });
45: var arr = Uint8Array.fromBase64("x-_y", base64UrlOptions);
46: assert.compareArray(arr, [199, 239, 242]);
47: assert.sameValue(alphabetAccesses, 1);
48:
49: var lastChunkHandlingAccesses = 0;
50: var strictOptions = {};
51: Object.defineProperty(strictOptions, "lastChunkHandling", {
52: get: function() {
53: lastChunkHandlingAccesses += 1;
54: return "strict";
55: }
56: });
57: var arr = Uint8Array.fromBase64("Zg==", strictOptions);
58: assert.compareArray(arr, [102]);
59: assert.sameValue(lastChunkHandlingAccesses, 1);
60:
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/option-coercion.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/option-coercion.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in /home/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in /home/runner/work/jint/jint/Jint/Native/TypedArray/TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Expressions/JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintVariableDeclaration.ExecuteInternal(EvaluationContext context) in /home/runner/work/jint/jint/Jint/Runtime/Interpreter/Statements/JintVariableDeclaration.cs:line 99
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in /home/runner/work/jint/jint/Jint/Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in /home/runner/work/jint/jint/Jint/Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in /home/runner/work/jint/jint/Jint.Tests.Test262/Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in /home/runner/work/jint/jint/Jint.Tests.Test262/Generated/Tests262Harness.Test262Test.generated.cs:line 77
01: "use strict";
02: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
03: // This code is governed by the BSD license found in the LICENSE file.
04: /*---
05: esid: sec-uint8array.frombase64
06: description: Uint8Array.fromBase64 triggers effects of the "alphabet" and "lastChunkHandling" getters, but does not perform toString on the results
07: includes: [compareArray.js]
08: features: [uint8array-base64, TypedArray]
09: ---*/
10:
11: assert.throws(TypeError, function() {
12: Uint8Array.fromBase64("Zg==", { alphabet: Object("base64") });
13: });
14:
15: assert.throws(TypeError, function() {
16: Uint8Array.fromBase64("Zg==", { lastChunkHandling: Object("loose") });
17: });
18:
19:
20: var toStringCalls = 0;
21: var throwyToString = {
22: toString: function() {
23: toStringCalls += 1;
24: throw new Test262Error("toString called");
25: }
26: };
27: assert.throws(TypeError, function() {
28: Uint8Array.fromBase64("Zg==", { alphabet: throwyToString });
29: });
30: assert.sameValue(toStringCalls, 0);
31:
32: assert.throws(TypeError, function() {
33: Uint8Array.fromBase64("Zg==", { lastChunkHandling: throwyToString });
34: });
35: assert.sameValue(toStringCalls, 0);
36:
37:
38: var alphabetAccesses = 0;
39: var base64UrlOptions = {};
40: Object.defineProperty(base64UrlOptions, "alphabet", {
41: get: function() {
42: alphabetAccesses += 1;
43: return "base64url";
44: }
45: });
46: var arr = Uint8Array.fromBase64("x-_y", base64UrlOptions);
47: assert.compareArray(arr, [199, 239, 242]);
48: assert.sameValue(alphabetAccesses, 1);
49:
50: var lastChunkHandlingAccesses = 0;
51: var strictOptions = {};
52: Object.defineProperty(strictOptions, "lastChunkHandling", {
53: get: function() {
54: lastChunkHandlingAccesses += 1;
55: return "strict";
56: }
57: });
58: var arr = Uint8Array.fromBase64("Zg==", strictOptions);
59: assert.compareArray(arr, [102]);
60: assert.sameValue(lastChunkHandlingAccesses, 1);
61:
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/alphabet.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/alphabet.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in D:\a\jint\jint\Jint\Native\TypedArray\TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in D:\a\jint\jint\Jint\Native\TypedArray\TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 157
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintExpressionStatement.cs:line 24
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in D:\a\jint\jint\Jint\Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in D:\a\jint\jint\Jint.Tests.Test262\Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 77
01: "use strict";
02: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
03: // This code is governed by the BSD license found in the LICENSE file.
04: /*---
05: esid: sec-uint8array.frombase64
06: description: Conversion of base64 strings to Uint8Arrays exercising the alphabet option
07: includes: [compareArray.js]
08: features: [uint8array-base64, TypedArray]
09: ---*/
10:
11: assert.compareArray(Uint8Array.fromBase64('x+/y'), [199, 239, 242]);
12: assert.compareArray(Uint8Array.fromBase64('x+/y', { alphabet: 'base64' }), [199, 239, 242]);
13: assert.throws(SyntaxError, function() {
14: Uint8Array.fromBase64('x+/y', { alphabet: 'base64url' });
15: });
16:
17: assert.compareArray(Uint8Array.fromBase64('x-_y', { alphabet: 'base64url' }), [199, 239, 242]);
18: assert.throws(SyntaxError, function() {
19: Uint8Array.fromBase64('x-_y');
20: });
21: assert.throws(SyntaxError, function() {
22: Uint8Array.fromBase64('x-_y', { alphabet: 'base64' });
23: });
24:
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/alphabet.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/alphabet.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in D:\a\jint\jint\Jint\Native\TypedArray\TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in D:\a\jint\jint\Jint\Native\TypedArray\TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 157
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintExpressionStatement.cs:line 24
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in D:\a\jint\jint\Jint\Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in D:\a\jint\jint\Jint.Tests.Test262\Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 77
01: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
02: // This code is governed by the BSD license found in the LICENSE file.
03: /*---
04: esid: sec-uint8array.frombase64
05: description: Conversion of base64 strings to Uint8Arrays exercising the alphabet option
06: includes: [compareArray.js]
07: features: [uint8array-base64, TypedArray]
08: ---*/
09:
10: assert.compareArray(Uint8Array.fromBase64('x+/y'), [199, 239, 242]);
11: assert.compareArray(Uint8Array.fromBase64('x+/y', { alphabet: 'base64' }), [199, 239, 242]);
12: assert.throws(SyntaxError, function() {
13: Uint8Array.fromBase64('x+/y', { alphabet: 'base64url' });
14: });
15:
16: assert.compareArray(Uint8Array.fromBase64('x-_y', { alphabet: 'base64url' }), [199, 239, 242]);
17: assert.throws(SyntaxError, function() {
18: Uint8Array.fromBase64('x-_y');
19: });
20: assert.throws(SyntaxError, function() {
21: Uint8Array.fromBase64('x-_y', { alphabet: 'base64' });
22: });
23:
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/ignores-receiver.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/ignores-receiver.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in D:\a\jint\jint\Jint\Native\TypedArray\TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in D:\a\jint\jint\Jint\Native\TypedArray\TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintVariableDeclaration.ExecuteInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintVariableDeclaration.cs:line 99
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in D:\a\jint\jint\Jint\Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in D:\a\jint\jint\Jint.Tests.Test262\Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 77
01: "use strict";
02: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
03: // This code is governed by the BSD license found in the LICENSE file.
04: /*---
05: esid: sec-uint8array.frombase64
06: description: Uint8Array.fromBase64 ignores its receiver
07: features: [uint8array-base64, TypedArray]
08: ---*/
09:
10: var fromBase64 = Uint8Array.fromBase64;
11: var noReceiver = fromBase64("Zg==");
12: assert.sameValue(Object.getPrototypeOf(noReceiver), Uint8Array.prototype);
13:
14: class Subclass extends Uint8Array {
15: constructor() {
16: throw new Test262Error("subclass constructor called");
17: }
18: }
19: var fromSubclass = Subclass.fromBase64("Zg==");
20: assert.sameValue(Object.getPrototypeOf(fromSubclass), Uint8Array.prototype);
21:
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/ignores-receiver.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/ignores-receiver.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in D:\a\jint\jint\Jint\Native\TypedArray\TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in D:\a\jint\jint\Jint\Native\TypedArray\TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintVariableDeclaration.ExecuteInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintVariableDeclaration.cs:line 99
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in D:\a\jint\jint\Jint\Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in D:\a\jint\jint\Jint.Tests.Test262\Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 77
01: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
02: // This code is governed by the BSD license found in the LICENSE file.
03: /*---
04: esid: sec-uint8array.frombase64
05: description: Uint8Array.fromBase64 ignores its receiver
06: features: [uint8array-base64, TypedArray]
07: ---*/
08:
09: var fromBase64 = Uint8Array.fromBase64;
10: var noReceiver = fromBase64("Zg==");
11: assert.sameValue(Object.getPrototypeOf(noReceiver), Uint8Array.prototype);
12:
13: class Subclass extends Uint8Array {
14: constructor() {
15: throw new Test262Error("subclass constructor called");
16: }
17: }
18: var fromSubclass = Subclass.fromBase64("Zg==");
19: assert.sameValue(Object.getPrototypeOf(fromSubclass), Uint8Array.prototype);
20:
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/last-chunk-handling.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/last-chunk-handling.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in D:\a\jint\jint\Jint\Native\TypedArray\TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in D:\a\jint\jint\Jint\Native\TypedArray\TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 157
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintExpressionStatement.cs:line 24
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in D:\a\jint\jint\Jint\Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in D:\a\jint\jint\Jint.Tests.Test262\Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 77
01: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
02: // This code is governed by the BSD license found in the LICENSE file.
03: /*---
04: esid: sec-uint8array.frombase64
05: description: Handling of final chunks in Uint8Array.fromBase64
06: includes: [compareArray.js]
07: features: [uint8array-base64, TypedArray]
08: ---*/
09:
10: // padding
11: assert.compareArray(Uint8Array.fromBase64('ZXhhZg=='), [101, 120, 97, 102]);
12: assert.compareArray(Uint8Array.fromBase64('ZXhhZg==', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
13: assert.compareArray(Uint8Array.fromBase64('ZXhhZg==', { lastChunkHandling: 'stop-before-partial' }), [101, 120, 97, 102]);
14: assert.compareArray(Uint8Array.fromBase64('ZXhhZg==', { lastChunkHandling: 'strict' }), [101, 120, 97, 102]);
15:
16: // no padding
17: assert.compareArray(Uint8Array.fromBase64('ZXhhZg'), [101, 120, 97, 102]);
18: assert.compareArray(Uint8Array.fromBase64('ZXhhZg', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
19: assert.compareArray(Uint8Array.fromBase64('ZXhhZg', { lastChunkHandling: 'stop-before-partial' }), [101, 120, 97]);
20: assert.throws(SyntaxError, function() {
21: Uint8Array.fromBase64('ZXhhZg', { lastChunkHandling: 'strict' });
22: });
23:
24: // non-zero padding bits
25: assert.compareArray(Uint8Array.fromBase64('ZXhhZh=='), [101, 120, 97, 102]);
26: assert.compareArray(Uint8Array.fromBase64('ZXhhZh==', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
27: assert.compareArray(Uint8Array.fromBase64('ZXhhZh==', { lastChunkHandling: 'stop-before-partial' }), [101, 120, 97, 102]);
28: assert.throws(SyntaxError, function() {
29: Uint8Array.fromBase64('ZXhhZh==', { lastChunkHandling: 'strict' });
30: });
31:
32: // non-zero padding bits, no padding
33: assert.compareArray(Uint8Array.fromBase64('ZXhhZh'), [101, 120, 97, 102]);
34: assert.compareArray(Uint8Array.fromBase64('ZXhhZh', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
35: assert.compareArray(Uint8Array.fromBase64('
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/illegal-characters.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/illegal-characters.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in D:\a\jint\jint\Jint\Native\TypedArray\TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in D:\a\jint\jint\Jint\Native\TypedArray\TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintExpressionStatement.cs:line 24
at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments) in D:\a\jint\jint\Jint\Native\Function\ScriptFunction.cs:line 78
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintExpressionStatement.cs:line 24
at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteSingle(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintBlockStatement.cs:line 72
at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteBlock(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintBlockStatement.cs:line 52
at Jint.Runtime.Interpreter.Statements.JintTryStatement.ExecuteInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintTryStatement.cs:line 33
at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments) in D:\a\jint\jint\Jint\Native\Function\ScriptFunction.cs:line 78
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintExpressionStatement.cs:line 24
at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments) in D:\a\jint\jint\Jint\Native\Function\ScriptFunction.cs:line 78
at Jint.Native.Array.ArrayPrototype.ForEach(JsValue thisObject, JsValue[] arguments) in D:\a\jint\jint\Jint\Native\Array\ArrayPrototype.cs:line 637
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintExpressionStatement.cs:line 24
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in D:\a\jint\jint\Jint\E
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/illegal-characters.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/illegal-characters.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in D:\a\jint\jint\Jint\Native\TypedArray\TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in D:\a\jint\jint\Jint\Native\TypedArray\TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintExpressionStatement.cs:line 24
at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments) in D:\a\jint\jint\Jint\Native\Function\ScriptFunction.cs:line 78
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintExpressionStatement.cs:line 24
at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteSingle(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintBlockStatement.cs:line 72
at Jint.Runtime.Interpreter.Statements.JintBlockStatement.ExecuteBlock(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintBlockStatement.cs:line 52
at Jint.Runtime.Interpreter.Statements.JintTryStatement.ExecuteInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintTryStatement.cs:line 33
at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments) in D:\a\jint\jint\Jint\Native\Function\ScriptFunction.cs:line 78
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintExpressionStatement.cs:line 24
at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments) in D:\a\jint\jint\Jint\Native\Function\ScriptFunction.cs:line 78
at Jint.Native.Array.ArrayPrototype.ForEach(JsValue thisObject, JsValue[] arguments) in D:\a\jint\jint\Jint\Native\Array\ArrayPrototype.cs:line 637
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintExpressionStatement.cs:line 24
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in D:\a\jint\jint\Jint\E
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/last-chunk-handling.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/last-chunk-handling.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in D:\a\jint\jint\Jint\Native\TypedArray\TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in D:\a\jint\jint\Jint\Native\TypedArray\TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 157
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintExpressionStatement.cs:line 24
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in D:\a\jint\jint\Jint\Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in D:\a\jint\jint\Jint.Tests.Test262\Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 77
01: "use strict";
02: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
03: // This code is governed by the BSD license found in the LICENSE file.
04: /*---
05: esid: sec-uint8array.frombase64
06: description: Handling of final chunks in Uint8Array.fromBase64
07: includes: [compareArray.js]
08: features: [uint8array-base64, TypedArray]
09: ---*/
10:
11: // padding
12: assert.compareArray(Uint8Array.fromBase64('ZXhhZg=='), [101, 120, 97, 102]);
13: assert.compareArray(Uint8Array.fromBase64('ZXhhZg==', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
14: assert.compareArray(Uint8Array.fromBase64('ZXhhZg==', { lastChunkHandling: 'stop-before-partial' }), [101, 120, 97, 102]);
15: assert.compareArray(Uint8Array.fromBase64('ZXhhZg==', { lastChunkHandling: 'strict' }), [101, 120, 97, 102]);
16:
17: // no padding
18: assert.compareArray(Uint8Array.fromBase64('ZXhhZg'), [101, 120, 97, 102]);
19: assert.compareArray(Uint8Array.fromBase64('ZXhhZg', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
20: assert.compareArray(Uint8Array.fromBase64('ZXhhZg', { lastChunkHandling: 'stop-before-partial' }), [101, 120, 97]);
21: assert.throws(SyntaxError, function() {
22: Uint8Array.fromBase64('ZXhhZg', { lastChunkHandling: 'strict' });
23: });
24:
25: // non-zero padding bits
26: assert.compareArray(Uint8Array.fromBase64('ZXhhZh=='), [101, 120, 97, 102]);
27: assert.compareArray(Uint8Array.fromBase64('ZXhhZh==', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
28: assert.compareArray(Uint8Array.fromBase64('ZXhhZh==', { lastChunkHandling: 'stop-before-partial' }), [101, 120, 97, 102]);
29: assert.throws(SyntaxError, function() {
30: Uint8Array.fromBase64('ZXhhZh==', { lastChunkHandling: 'strict' });
31: });
32:
33: // non-zero padding bits, no padding
34: assert.compareArray(Uint8Array.fromBase64('ZXhhZh'), [101, 120, 97, 102]);
35: assert.compareArray(Uint8Array.fromBase64('ZXhhZh', { lastChunkHandling: 'loose' }), [101, 120, 97, 102]);
36: assert.compareArray(Ui
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/results.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/results.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in D:\a\jint\jint\Jint\Native\TypedArray\TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in D:\a\jint\jint\Jint\Native\TypedArray\TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintVariableDeclaration.ExecuteInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintVariableDeclaration.cs:line 99
at Jint.Native.Function.ScriptFunction.Call(JsValue thisObject, JsValue[] arguments) in D:\a\jint\jint\Jint\Native\Function\ScriptFunction.cs:line 78
at Jint.Native.Array.ArrayPrototype.ForEach(JsValue thisObject, JsValue[] arguments) in D:\a\jint\jint\Jint\Native\Array\ArrayPrototype.cs:line 637
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintExpressionStatement.cs:line 24
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in D:\a\jint\jint\Jint\Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in D:\a\jint\jint\Jint.Tests.Test262\Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 77
01: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
02: // This code is governed by the BSD license found in the LICENSE file.
03: /*---
04: esid: sec-uint8array.frombase64
05: description: Conversion of base64 strings to Uint8Arrays
06: includes: [compareArray.js]
07: features: [uint8array-base64, TypedArray]
08: ---*/
09:
10: // standard test vectors from https://datatracker.ietf.org/doc/html/rfc4648#section-10
11: var standardBase64Vectors = [
12: ["", []],
13: ["Zg==", [102]],
14: ["Zm8=", [102, 111]],
15: ["Zm9v", [102, 111, 111]],
16: ["Zm9vYg==", [102, 111, 111, 98]],
17: ["Zm9vYmE=", [102, 111, 111, 98, 97]],
18: ["Zm9vYmFy", [102, 111, 111, 98, 97, 114]],
19: ];
20:
21: standardBase64Vectors.forEach(function (pair) {
22: var arr = Uint8Array.fromBase64(pair[0]);
23: assert.sameValue(Object.getPrototypeOf(arr), Uint8Array.prototype, "decoding " + pair[0]);
24: assert.sameValue(arr.length, pair[1].length, "decoding " + pair[0]);
25: assert.sameValue(arr.buffer.byteLength, pair[1].length, "decoding " + pair[0]);
26: assert.compareArray(arr, pair[1], "decoding " + pair[0]);
27: });
28:
|
Uint8Array_fromBase64("built-ins/Uint8Array/fromBase64/option-coercion.js":
Jint.Tests.Test262/Generated/Tests262Harness.Tests.built-ins.generated.cs#L37458
built-ins/Uint8Array/fromBase64/option-coercion.js
System.NotImplementedException: The method or operation is not implemented.
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(String s, String alphabet, String lastChunkHandling, Nullable`1 maxLength) in D:\a\jint\jint\Jint\Native\TypedArray\TypedArrayConstructor.Types.cs:line 117
at Jint.Native.TypedArray.Uint8ArrayConstructor.FromBase64(JsValue thisObject, JsValue[] arguments) in D:\a\jint\jint\Jint\Native\TypedArray\TypedArrayConstructor.Types.cs:line 57
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintCallExpression.cs:line 192
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Expressions\JintExpression.cs:line 26
at Jint.Runtime.Interpreter.Statements.JintVariableDeclaration.ExecuteInternal(EvaluationContext context) in D:\a\jint\jint\Jint\Runtime\Interpreter\Statements\JintVariableDeclaration.cs:line 99
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions) in D:\a\jint\jint\Jint\Engine.cs:line 441
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback) in D:\a\jint\jint\Jint\Engine.cs:line 807
at Jint.Tests.Test262.Test262Test.ExecuteTest(Engine engine, Test262File file) in D:\a\jint\jint\Jint.Tests.Test262\Test262Test.cs:line 102
at Jint.Tests.Test262.Test262Test.RunTestCode(String test, Boolean strict) in D:\a\jint\jint\Jint.Tests.Test262\Generated\Tests262Harness.Test262Test.generated.cs:line 77
01: // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
02: // This code is governed by the BSD license found in the LICENSE file.
03: /*---
04: esid: sec-uint8array.frombase64
05: description: Uint8Array.fromBase64 triggers effects of the "alphabet" and "lastChunkHandling" getters, but does not perform toString on the results
06: includes: [compareArray.js]
07: features: [uint8array-base64, TypedArray]
08: ---*/
09:
10: assert.throws(TypeError, function() {
11: Uint8Array.fromBase64("Zg==", { alphabet: Object("base64") });
12: });
13:
14: assert.throws(TypeError, function() {
15: Uint8Array.fromBase64("Zg==", { lastChunkHandling: Object("loose") });
16: });
17:
18:
19: var toStringCalls = 0;
20: var throwyToString = {
21: toString: function() {
22: toStringCalls += 1;
23: throw new Test262Error("toString called");
24: }
25: };
26: assert.throws(TypeError, function() {
27: Uint8Array.fromBase64("Zg==", { alphabet: throwyToString });
28: });
29: assert.sameValue(toStringCalls, 0);
30:
31: assert.throws(TypeError, function() {
32: Uint8Array.fromBase64("Zg==", { lastChunkHandling: throwyToString });
33: });
34: assert.sameValue(toStringCalls, 0);
35:
36:
37: var alphabetAccesses = 0;
38: var base64UrlOptions = {};
39: Object.defineProperty(base64UrlOptions, "alphabet", {
40: get: function() {
41: alphabetAccesses += 1;
42: return "base64url";
43: }
44: });
45: var arr = Uint8Array.fromBase64("x-_y", base64UrlOptions);
46: assert.compareArray(arr, [199, 239, 242]);
47: assert.sameValue(alphabetAccesses, 1);
48:
49: var lastChunkHandlingAccesses = 0;
50: var strictOptions = {};
51: Object.defineProperty(strictOptions, "lastChunkHandling", {
52: get: function() {
53: lastChunkHandlingAccesses += 1;
54: return "strict";
55: }
56: });
57: var arr = Uint8Array.fromBase64("Zg==", strictOptions);
58: assert.compareArray(arr, [102]);
59: assert.sameValue(lastChunkHandlingAccesses, 1);
60:
|