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

Side by Side Diff: src/messages.js

Issue 11225058: Initial JS stub implementation of Object.observe. Adds support for .object/.unobserve/.notify/.deli… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: install functions on Object, not Object.prototype Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 "trap_function_expected", ["Proxy.", "%0", " called with non-functio n for '", "%1", "' trap"], 196 "trap_function_expected", ["Proxy.", "%0", " called with non-functio n for '", "%1", "' trap"],
197 "handler_trap_missing", ["Proxy handler ", "%0", " has no '", "%1" , "' trap"], 197 "handler_trap_missing", ["Proxy handler ", "%0", " has no '", "%1" , "' trap"],
198 "handler_trap_must_be_callable", ["Proxy handler ", "%0", " has non-callab le '", "%1", "' trap"], 198 "handler_trap_must_be_callable", ["Proxy handler ", "%0", " has non-callab le '", "%1", "' trap"],
199 "handler_returned_false", ["Proxy handler ", "%0", " returned false from '", "%1", "' trap"], 199 "handler_returned_false", ["Proxy handler ", "%0", " returned false from '", "%1", "' trap"],
200 "handler_returned_undefined", ["Proxy handler ", "%0", " returned undefi ned from '", "%1", "' trap"], 200 "handler_returned_undefined", ["Proxy handler ", "%0", " returned undefi ned from '", "%1", "' trap"],
201 "proxy_prop_not_configurable", ["Proxy handler ", "%0", " returned non-co nfigurable descriptor for property '", "%2", "' from '", "%1", "' trap"], 201 "proxy_prop_not_configurable", ["Proxy handler ", "%0", " returned non-co nfigurable descriptor for property '", "%2", "' from '", "%1", "' trap"],
202 "proxy_non_object_prop_names", ["Trap '", "%1", "' returned non-object ", "%0"], 202 "proxy_non_object_prop_names", ["Trap '", "%1", "' returned non-object ", "%0"],
203 "proxy_repeated_prop_name", ["Trap '", "%1", "' returned repeated prop erty name '", "%2", "'"], 203 "proxy_repeated_prop_name", ["Trap '", "%1", "' returned repeated prop erty name '", "%2", "'"],
204 "invalid_weakmap_key", ["Invalid value used as weak map key"], 204 "invalid_weakmap_key", ["Invalid value used as weak map key"],
205 "not_date_object", ["this is not a Date object."], 205 "not_date_object", ["this is not a Date object."],
206 "observe_non_object", ["Object.", "%0", " cannot ", "%0", " non- object"],
arv (Not doing code reviews) 2012/10/25 20:43:44 Should this be "Object " instead of "Object.". Sam
rafaelw 2012/10/26 05:34:14 This gets concat with the %0 value, e.g "Object.ob
207 "observe_non_function", ["Object.", "%0", " cannot deliver to non- function"],
208 "observe_callback_frozen", ["Object.observe cannot deliver to a froze n function object"],
209 "observe_type_non_string", ["Object.notify provided changeRecord with non-string 'type' property"],
206 // RangeError 210 // RangeError
207 "invalid_array_length", ["Invalid array length"], 211 "invalid_array_length", ["Invalid array length"],
208 "stack_overflow", ["Maximum call stack size exceeded"], 212 "stack_overflow", ["Maximum call stack size exceeded"],
209 "invalid_time_value", ["Invalid time value"], 213 "invalid_time_value", ["Invalid time value"],
210 // SyntaxError 214 // SyntaxError
211 "unable_to_parse", ["Parse error"], 215 "unable_to_parse", ["Parse error"],
212 "invalid_regexp_flags", ["Invalid flags supplied to RegExp constru ctor '", "%0", "'"], 216 "invalid_regexp_flags", ["Invalid flags supplied to RegExp constru ctor '", "%0", "'"],
213 "invalid_regexp", ["Invalid RegExp pattern /", "%0", "/"], 217 "invalid_regexp", ["Invalid RegExp pattern /", "%0", "/"],
214 "illegal_break", ["Illegal break statement"], 218 "illegal_break", ["Illegal break statement"],
215 "illegal_continue", ["Illegal continue statement"], 219 "illegal_continue", ["Illegal continue statement"],
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 throw e; 1265 throw e;
1262 } 1266 }
1263 } 1267 }
1264 1268
1265 1269
1266 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', ErrorToString]); 1270 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', ErrorToString]);
1267 1271
1268 // Boilerplate for exceptions for stack overflows. Used from 1272 // Boilerplate for exceptions for stack overflows. Used from
1269 // Isolate::StackOverflow(). 1273 // Isolate::StackOverflow().
1270 var kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); 1274 var kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []);
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/object-observe.js » ('j') | src/object-observe.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698