Commit 34a92d1 1 parent ddf9c16 commit 34a92d1 Copy full SHA for 34a92d1
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 @@ -742,8 +742,7 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
742
742
743
743
ScriptCompiler::CachedData* cached_data = nullptr ;
744
744
if (!cached_data_buf.IsEmpty ()) {
745
- uint8_t * data = static_cast <uint8_t *>(
746
- cached_data_buf->Buffer ()->GetBackingStore ()->Data ());
745
+ uint8_t * data = static_cast <uint8_t *>(cached_data_buf->Buffer ()->Data ());
747
746
cached_data = new ScriptCompiler::CachedData (
748
747
data + cached_data_buf->ByteOffset (), cached_data_buf->ByteLength ());
749
748
}
@@ -1064,8 +1063,7 @@ void ContextifyContext::CompileFunction(
1064
1063
// Read cache from cached data buffer
1065
1064
ScriptCompiler::CachedData* cached_data = nullptr ;
1066
1065
if (!cached_data_buf.IsEmpty ()) {
1067
- uint8_t * data = static_cast <uint8_t *>(
1068
- cached_data_buf->Buffer ()->GetBackingStore ()->Data ());
1066
+ uint8_t * data = static_cast <uint8_t *>(cached_data_buf->Buffer ()->Data ());
1069
1067
cached_data = new ScriptCompiler::CachedData (
1070
1068
data + cached_data_buf->ByteOffset (), cached_data_buf->ByteLength ());
1071
1069
}
You can’t perform that action at this time.
0 commit comments