Chromium Code Reviews| Index: src/runtime.js |
| diff --git a/src/runtime.js b/src/runtime.js |
| index 978429ea3bb701be51c4115b3213c89bd5867566..8ae676110be18cf955f7339dcbab9f43b5d8f58c 100644 |
| --- a/src/runtime.js |
| +++ b/src/runtime.js |
| @@ -468,6 +468,12 @@ function TO_STRING() { |
| } |
| +// Convert the receiver to a string or symbol - forward to ToName. |
| +function TO_NAME() { |
| + return %ToName(this); |
| +} |
| + |
| + |
| /* ------------------------------------- |
| - - - C o n v e r s i o n s - - - |
| ------------------------------------- |