Skip to content

Commit 20d758f

Browse files
committed
fixup! fixup! module: integrate TypeScript into compile cache
1 parent 960c79c commit 20d758f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/node_modules.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ namespace modules {
2222

2323
using v8::Array;
2424
using v8::Context;
25+
using v8::External;
2526
using v8::FunctionCallbackInfo;
2627
using v8::HandleScope;
2728
using v8::Integer;
@@ -565,7 +566,7 @@ void SaveCompileCacheEntry(const FunctionCallbackInfo<Value>& args) {
565566
CHECK(args[0]->IsExternal());
566567
CHECK(args[1]->IsString()); // TODO(joyeecheung): accept buffer.
567568
auto* cache_entry =
568-
static_cast<CompileCacheEntry*>(args[0].As<v8::External>()->Value());
569+
static_cast<CompileCacheEntry*>(args[0].As<External>()->Value());
569570
Utf8Value utf8(isolate, args[1].As<String>());
570571
env->compile_cache_handler()->MaybeSave(cache_entry, utf8.ToStringView());
571572
}

0 commit comments

Comments
 (0)