File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -178,8 +178,8 @@ void ModuleWrap::New(const FunctionCallbackInfo<Value>& args) {
178
178
if (!args[5 ]->IsUndefined ()) {
179
179
CHECK (args[5 ]->IsArrayBufferView ());
180
180
Local<ArrayBufferView> cached_data_buf = args[5 ].As <ArrayBufferView>();
181
- uint8_t * data = static_cast < uint8_t *>(
182
- cached_data_buf-> Buffer ()-> GetBackingStore ()->Data ());
181
+ uint8_t * data =
182
+ static_cast < uint8_t *>(cached_data_buf-> Buffer ()->Data ());
183
183
cached_data =
184
184
new ScriptCompiler::CachedData (data + cached_data_buf->ByteOffset (),
185
185
cached_data_buf->ByteLength ());
Original file line number Diff line number Diff line change @@ -746,8 +746,7 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
746
746
747
747
ScriptCompiler::CachedData* cached_data = nullptr ;
748
748
if (!cached_data_buf.IsEmpty ()) {
749
- uint8_t * data = static_cast <uint8_t *>(
750
- cached_data_buf->Buffer ()->GetBackingStore ()->Data ());
749
+ uint8_t * data = static_cast <uint8_t *>(cached_data_buf->Buffer ()->Data ());
751
750
cached_data = new ScriptCompiler::CachedData (
752
751
data + cached_data_buf->ByteOffset (), cached_data_buf->ByteLength ());
753
752
}
@@ -1068,8 +1067,7 @@ void ContextifyContext::CompileFunction(
1068
1067
// Read cache from cached data buffer
1069
1068
ScriptCompiler::CachedData* cached_data = nullptr ;
1070
1069
if (!cached_data_buf.IsEmpty ()) {
1071
- uint8_t * data = static_cast <uint8_t *>(
1072
- cached_data_buf->Buffer ()->GetBackingStore ()->Data ());
1070
+ uint8_t * data = static_cast <uint8_t *>(cached_data_buf->Buffer ()->Data ());
1073
1071
cached_data = new ScriptCompiler::CachedData (
1074
1072
data + cached_data_buf->ByteOffset (), cached_data_buf->ByteLength ());
1075
1073
}
You can’t perform that action at this time.
0 commit comments