Changeset 41565 in webkit for trunk/JavaScriptCore/runtime
- Timestamp:
- Mar 10, 2009, 3:48:46 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/FunctionConstructor.cpp
r40993 r41565 98 98 program = "(function(){})"; 99 99 else if (args.size() == 1) 100 program = "(function(){" + args.at(exec, 0).toString(exec) + " })";100 program = "(function(){" + 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) + " })";105 program += "){" + args.at(exec, args.size() - 1).toString(exec) + "\n})"; 106 106 } 107 107
Note:
See TracChangeset
for help on using the changeset viewer.