// Copyright 2016 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.varsym=Symbol();functionasm(stdlib,ffi){"use asm";varget_sym=ffi.get_sym;functioncrash(){get_sym()|0;}return{crash:crash};}functionget_sym(){returnsym;}try{asm(null,{get_sym:get_sym}).crash();}catch(e){if(!(einstanceofTypeError))throwe;}