Changeset 41851 in webkit for trunk/JavaScriptCore/runtime/FunctionConstructor.cpp
- Timestamp:
- Mar 19, 2009, 7:04:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/FunctionConstructor.cpp
r41565 r41851 98 98 program = "(function(){})"; 99 99 else if (args.size() == 1) 100 program = "(function(){ " + args.at(exec, 0).toString(exec) + "\n})";100 program = "(function(){\n" + args.at(exec, 0).toString(exec) + "\n})"; 101 101 else { 102 102 program = "(function(" + args.at(exec, 0).toString(exec); 103 103 for (size_t i = 1; i < args.size() - 1; i++) 104 104 program += "," + args.at(exec, i).toString(exec); 105 program += "){ " + args.at(exec, args.size() - 1).toString(exec) + "\n})";105 program += "){\n" + args.at(exec, args.size() - 1).toString(exec) + "\n})"; 106 106 } 107 107
Note:
See TracChangeset
for help on using the changeset viewer.