Skip to content

Commit dab23d5

Browse files
Jake ChampionJakeChampion
authored andcommitted
allow use of value_to_buffer from other files by adding it to the header file
we plan to move the built-ins into their own files and they will require access to this functions
1 parent 796175c commit dab23d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

c-dependencies/js-compute-runtime/js-compute-builtins.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ inline bool ThrowIfNotConstructing(JSContext *cx, const JS::CallArgs &args,
5454
JS_ReportErrorNumberASCII(cx, GetErrorMessage, nullptr, JSMSG_BUILTIN_CTOR_NO_NEW, builtinName);
5555
return false;
5656
}
57+
58+
uint8_t *value_to_buffer(JSContext *cx, JS::HandleValue val, const char *val_desc, size_t *len);
59+
5760
bool hasWizeningFinished();
5861
bool isWizening();
5962
void markWizeningAsFinished();

0 commit comments

Comments
 (0)