mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 21:32:05 +00:00
work around test failure
This commit is contained in:
@@ -44,7 +44,7 @@ namespace WebCore {
|
||||
|
||||
const JSC::ConstructAbility s_jsBufferConstructorFromCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
|
||||
const JSC::ConstructorKind s_jsBufferConstructorFromCodeConstructorKind = JSC::ConstructorKind::None;
|
||||
const int s_jsBufferConstructorFromCodeLength = 931;
|
||||
const int s_jsBufferConstructorFromCodeLength = 936;
|
||||
static const JSC::Intrinsic s_jsBufferConstructorFromCodeIntrinsic = JSC::NoIntrinsic;
|
||||
const char* const s_jsBufferConstructorFromCode =
|
||||
"(function (items) {\n" \
|
||||
@@ -54,7 +54,8 @@ const char* const s_jsBufferConstructorFromCode =
|
||||
" @throwTypeError(\"Buffer.from requires |this| to be a constructor\");\n" \
|
||||
"\n" \
|
||||
"\n" \
|
||||
" if (typeof items === 'string' || @ArrayBuffer.@isView(items)) {\n" \
|
||||
" //\n" \
|
||||
" if (typeof items === 'string' || ArrayBuffer.isView(items)) {\n" \
|
||||
" switch (@argumentCount()) {\n" \
|
||||
" case 1: {\n" \
|
||||
" return new this(items);\n" \
|
||||
|
||||
@@ -33,7 +33,8 @@ function from(items) {
|
||||
@throwTypeError("Buffer.from requires |this| to be a constructor");
|
||||
|
||||
|
||||
if (typeof items === 'string' || @ArrayBuffer.@isView(items)) {
|
||||
// TODO: figure out why private symbol not found
|
||||
if (typeof items === 'string' || ArrayBuffer.isView(items)) {
|
||||
switch (@argumentCount()) {
|
||||
case 1: {
|
||||
return new this(items);
|
||||
|
||||
Reference in New Issue
Block a user