// Copyright 2017 the V8 project authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.// Flags: --allow-natives-syntax(functionTestDematerializedContextInBuiltin(){varf=function(){varb=[1,2,3];varcallback=function(v,i,o){%_DeoptimizeNow();};try{throw0}catch(e){returnb.forEach(callback);}}f();f();%OptimizeFunctionOnNextCall(f);f();})();