OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "xfa/fxjse/context.h" | 7 #include "fxjse/context.h" |
8 | 8 |
9 #include "xfa/fxjse/class.h" | 9 #include "fxjse/include/cfxjse_class.h" |
10 #include "xfa/fxjse/scope_inline.h" | 10 #include "fxjse/include/cfxjse_value.h" |
11 #include "xfa/fxjse/value.h" | 11 #include "fxjse/scope_inline.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 const FX_CHAR szCompatibleModeScript[] = | 15 const FX_CHAR szCompatibleModeScript[] = |
16 "(function(global, list) {\n" | 16 "(function(global, list) {\n" |
17 " 'use strict';\n" | 17 " 'use strict';\n" |
18 " var objname;\n" | 18 " var objname;\n" |
19 " for (objname in list) {\n" | 19 " for (objname in list) {\n" |
20 " var globalobj = global[objname];\n" | 20 " var globalobj = global[objname];\n" |
21 " if (globalobj) {\n" | 21 " if (globalobj) {\n" |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 return TRUE; | 217 return TRUE; |
218 } | 218 } |
219 } | 219 } |
220 if (lpRetValue) { | 220 if (lpRetValue) { |
221 lpRetValue->m_hValue.Reset(m_pIsolate, | 221 lpRetValue->m_hValue.Reset(m_pIsolate, |
222 FXJSE_CreateReturnValue(m_pIsolate, trycatch)); | 222 FXJSE_CreateReturnValue(m_pIsolate, trycatch)); |
223 } | 223 } |
224 return FALSE; | 224 return FALSE; |
225 } | 225 } |
226 } | 226 } |
OLD | NEW |