| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1261,20 +1261,6 @@ void GetZeroFillToggle(const FunctionCallbackInfo<Value>& args) { | |||
| 1261 | 1261 | args.GetReturnValue().Set(Uint32Array::New(ab, 0, 1)); | |
| 1262 | 1262 | } | |
| 1263 | 1263 | ||
| 1264 | - void DetachArrayBuffer(const FunctionCallbackInfo<Value>& args) { | ||
| 1265 | - Environment* env = Environment::GetCurrent(args); | ||
| 1266 | - if (args[0]->IsArrayBuffer()) { | ||
| 1267 | - Local<ArrayBuffer> buf = args[0].As<ArrayBuffer>(); | ||
| 1268 | - if (buf->IsDetachable()) { | ||
| 1269 | - std::shared_ptr<BackingStore> store = buf->GetBackingStore(); | ||
| 1270 | - if (buf->Detach(Local<Value>()).IsNothing()) { | ||
| 1271 | - return; | ||
| 1272 | - } | ||
| 1273 | - args.GetReturnValue().Set(ArrayBuffer::New(env->isolate(), store)); | ||
| 1274 | - } | ||
| 1275 | - } | ||
| 1276 | - } | ||
| 1277 | - | ||
| 1278 | 1264 | static void Btoa(const FunctionCallbackInfo<Value>& args) { | |
| 1279 | 1265 | CHECK_EQ(args.Length(), 1); | |
| 1280 | 1266 | Environment* env = Environment::GetCurrent(args); | |
@@ -1564,7 +1550,6 @@ void Initialize(Local<Object> target, | |||
| 1564 | 1550 | &fast_index_of_number); | |
| 1565 | 1551 | SetMethodNoSideEffect(context, target, "indexOfString", IndexOfString); | |
| 1566 | 1552 | ||
| 1567 | - SetMethod(context, target, "detachArrayBuffer", DetachArrayBuffer); | ||
| 1568 | 1553 | SetMethod(context, target, "copyArrayBuffer", CopyArrayBuffer); | |
| 1569 | 1554 | ||
| 1570 | 1555 | SetMethod(context, target, "swap16", Swap16); | |
@@ -1674,7 +1659,6 @@ void RegisterExternalReferences(ExternalReferenceRegistry* registry) { | |||
| 1674 | 1659 | registry->Register(StringWrite<UTF8>); | |
| 1675 | 1660 | registry->Register(GetZeroFillToggle); | |
| 1676 | 1661 | ||
| 1677 | - registry->Register(DetachArrayBuffer); | ||
| 1678 | 1662 | registry->Register(CopyArrayBuffer); | |
| 1679 | 1663 | ||
| 1680 | 1664 | registry->Register(Atob); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments