Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: include/v8.h

Issue 925433002: Make it possible to define arguments for CompileFunctionInContext (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index de2e733dbeccd9b4ddb0bcb36385a4ab6204aa03..deefe8351f5ea307855eb28b1be7c496b13709f8 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -1325,7 +1325,7 @@ class V8_EXPORT ScriptCompiler {
* Compile a function for a given context. This is equivalent to running
*
* with (obj) {
- * return function() { ... }
+ * return function(args) { ... }
* }
*
* It is possible to specify multiple context extensions (obj in the above
@@ -1333,6 +1333,7 @@ class V8_EXPORT ScriptCompiler {
*/
static Local<Function> CompileFunctionInContext(
Isolate* isolate, Source* source, Local<Context> context,
+ size_t arguments_count, Local<String> arguments[],
size_t context_extension_count, Local<Object> context_extensions[]);
private:
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698