diff options
author | 2022-11-11 16:02:35 -0800 | |
---|---|---|
committer | 2022-11-11 16:02:35 -0800 | |
commit | 514f2a8eddf1a1d35a33cc096ed7403a79afe36f (patch) | |
tree | 0172fc957c2517381a591420c1467d65fc08efaa /src/bun.js/builtins/cpp/ReadableStreamBuiltins.cpp | |
parent | 5f5d74c534c6482d91c07037cd0a1ae02bd92a3f (diff) | |
download | bun-514f2a8eddf1a1d35a33cc096ed7403a79afe36f.tar.gz bun-514f2a8eddf1a1d35a33cc096ed7403a79afe36f.tar.zst bun-514f2a8eddf1a1d35a33cc096ed7403a79afe36f.zip |
Add test that fails on linux
Diffstat (limited to 'src/bun.js/builtins/cpp/ReadableStreamBuiltins.cpp')
-rw-r--r-- | src/bun.js/builtins/cpp/ReadableStreamBuiltins.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/bun.js/builtins/cpp/ReadableStreamBuiltins.cpp b/src/bun.js/builtins/cpp/ReadableStreamBuiltins.cpp index cd14a15ea..86d40d4e8 100644 --- a/src/bun.js/builtins/cpp/ReadableStreamBuiltins.cpp +++ b/src/bun.js/builtins/cpp/ReadableStreamBuiltins.cpp @@ -567,15 +567,12 @@ const char* const s_readableStreamLockedCode = const JSC::ConstructAbility s_readableStreamValuesCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; const JSC::ConstructorKind s_readableStreamValuesCodeConstructorKind = JSC::ConstructorKind::None; const JSC::ImplementationVisibility s_readableStreamValuesCodeImplementationVisibility = JSC::ImplementationVisibility::Public; -const int s_readableStreamValuesCodeLength = 249; +const int s_readableStreamValuesCodeLength = 191; static const JSC::Intrinsic s_readableStreamValuesCodeIntrinsic = JSC::NoIntrinsic; const char* const s_readableStreamValuesCode = "(function (options) {\n" \ " \"use strict\";\n" \ - " var prototype = this?.constructor?.prototype;\n" \ - " if (!prototype) {\n" \ - " return @undefined;\n" \ - " }\n" \ + " var prototype = @ReadableStream.prototype;\n" \ " @readableStreamDefineLazyIterators(prototype);\n" \ " return prototype.values.@call(this, options);\n" \ "})\n" \ @@ -584,15 +581,12 @@ const char* const s_readableStreamValuesCode = const JSC::ConstructAbility s_readableStreamLazyAsyncIteratorCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; const JSC::ConstructorKind s_readableStreamLazyAsyncIteratorCodeConstructorKind = JSC::ConstructorKind::None; const JSC::ImplementationVisibility s_readableStreamLazyAsyncIteratorCodeImplementationVisibility = JSC::ImplementationVisibility::Private; -const int s_readableStreamLazyAsyncIteratorCodeLength = 259; +const int s_readableStreamLazyAsyncIteratorCodeLength = 201; static const JSC::Intrinsic s_readableStreamLazyAsyncIteratorCodeIntrinsic = JSC::NoIntrinsic; const char* const s_readableStreamLazyAsyncIteratorCode = "(function () {\n" \ " \"use strict\";\n" \ - " var prototype = this?.constructor?.prototype;\n" \ - " if (!prototype) {\n" \ - " return @undefined;\n" \ - " }\n" \ + " var prototype = @ReadableStream.prototype;\n" \ " @readableStreamDefineLazyIterators(prototype);\n" \ " return prototype[globalThis.Symbol.asyncIterator].@call(this);\n" \ "})\n" \ |