Chromium Code Reviews| Index: src/bootstrapper.cc |
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
| index 246428680ef8eee5676376b1d03c49127fb0a833..34df431372570abb4f0249b608544bae1adf412d 100644 |
| --- a/src/bootstrapper.cc |
| +++ b/src/bootstrapper.cc |
| @@ -564,11 +564,11 @@ void Genesis::CreateThrowTypeErrorCallbacks( |
| pill->shared()->set_code(*code); |
| pill->shared()->DontAdaptArguments(); |
| + PreventExtensions(pill); |
| + |
|
Martin Maly
2011/03/15 03:08:57
For some reason this felt cleaner, to freeze first
Mads Ager (chromium)
2011/03/15 08:49:54
I agree. :)
|
| // Install the poison pills into the calbacks array. |
| callbacks->set(0, *pill); |
| callbacks->set(1, *pill); |
| - |
| - PreventExtensions(pill); |
| } |