Update JS snapshot to version 8.1.0 (via coho)

This commit is contained in:
Erisu 2019-09-11 13:58:04 +09:00
parent 7e8b47d012
commit 030af05839
No known key found for this signature in database
GPG Key ID: 2E5FF17FB26AF7F2

View File

@ -1,5 +1,5 @@
// Platform: android // Platform: android
// 882658ab17740dbdece764e68c1f1f1f44fe3f9d // 74fdba8b327b2a13b4366dd141b52def96d4cb56
/* /*
Licensed to the Apache Software Foundation (ASF) under one Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file or more contributor license agreements. See the NOTICE file
@ -8,9 +8,9 @@
to you under the Apache License, Version 2.0 (the to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@ -19,9 +19,8 @@
under the License. under the License.
*/ */
;(function() { ;(function() {
var PLATFORM_VERSION_BUILD_LABEL = '8.1.0-dev'; var PLATFORM_VERSION_BUILD_LABEL = '8.1.0';
// file: src/scripts/require.js // file: src/scripts/require.js
var require; var require;
var define; var define;
@ -70,7 +69,7 @@ var define;
}; };
define = function (id, factory) { define = function (id, factory) {
if (modules[id]) { if (Object.prototype.hasOwnProperty.call(modules, id)) {
throw 'module ' + id + ' already defined'; throw 'module ' + id + ' already defined';
} }
@ -205,8 +204,8 @@ var cordova = {
* @return object * @return object
*/ */
getOriginalHandlers: function () { getOriginalHandlers: function () {
return {'document': {'addEventListener': m_document_addEventListener, 'removeEventListener': m_document_removeEventListener}, return { 'document': { 'addEventListener': m_document_addEventListener, 'removeEventListener': m_document_removeEventListener },
'window': {'addEventListener': m_window_addEventListener, 'removeEventListener': m_window_removeEventListener}}; 'window': { 'addEventListener': m_window_addEventListener, 'removeEventListener': m_window_removeEventListener } };
}, },
/** /**
* Method to fire event from native code * Method to fire event from native code
@ -324,7 +323,7 @@ module.exports = cordova;
}); });
// file: /Users/erisu/git/apache/cordova/cordova-android/cordova-js-src/android/nativeapiprovider.js // file: ../cordova-android/cordova-js-src/android/nativeapiprovider.js
define("cordova/android/nativeapiprovider", function(require, exports, module) { define("cordova/android/nativeapiprovider", function(require, exports, module) {
/** /**
@ -347,7 +346,7 @@ module.exports = {
}); });
// file: /Users/erisu/git/apache/cordova/cordova-android/cordova-js-src/android/promptbasednativeapi.js // file: ../cordova-android/cordova-js-src/android/promptbasednativeapi.js
define("cordova/android/promptbasednativeapi", function(require, exports, module) { define("cordova/android/promptbasednativeapi", function(require, exports, module) {
/** /**
@ -386,9 +385,38 @@ var typeMap = {
}; };
function extractParamName (callee, argIndex) { function extractParamName (callee, argIndex) {
return (/.*?\((.*?)\)/).exec(callee)[1].split(', ')[argIndex]; return (/\(\s*([^)]*?)\s*\)/).exec(callee)[1].split(/\s*,\s*/)[argIndex];
} }
/**
* Checks the given arguments' types and throws if they are not as expected.
*
* `spec` is a string where each character stands for the required type of the
* argument at the same position. In other words: the character at `spec[i]`
* specifies the required type for `args[i]`. The characters in `spec` are the
* first letter of the required type's name. The supported types are:
*
* Array, Date, Number, String, Function, Object
*
* Lowercase characters specify arguments that must not be `null` or `undefined`
* while uppercase characters allow those values to be passed.
*
* Finally, `*` can be used to allow any type at the corresponding position.
*
* @example
* function foo (arr, opts) {
* // require `arr` to be an Array and `opts` an Object, null or undefined
* checkArgs('aO', 'my.package.foo', arguments);
* // ...
* }
* @param {String} spec - the type specification for `args` as described above
* @param {String} functionName - full name of the callee.
* Used in the error message
* @param {Array|arguments} args - the arguments to be checked against `spec`
* @param {Function} [opt_callee=args.callee] - the recipient of `args`.
* Used to extract parameter names for the error message
* @throws {TypeError} if args do not satisfy spec
*/
function checkArgs (spec, functionName, args, opt_callee) { function checkArgs (spec, functionName, args, opt_callee) {
if (!moduleExports.enableChecks) { if (!moduleExports.enableChecks) {
return; return;
@ -879,7 +907,7 @@ module.exports = channel;
}); });
// file: /Users/erisu/git/apache/cordova/cordova-android/cordova-js-src/exec.js // file: ../cordova-android/cordova-js-src/exec.js
define("cordova/exec", function(require, exports, module) { define("cordova/exec", function(require, exports, module) {
/** /**
@ -1406,7 +1434,7 @@ exports.reset();
}); });
// file: /Users/erisu/git/apache/cordova/cordova-android/cordova-js-src/platform.js // file: ../cordova-android/cordova-js-src/platform.js
define("cordova/platform", function(require, exports, module) { define("cordova/platform", function(require, exports, module) {
// The last resume event that was received that had the result of a plugin call. // The last resume event that was received that had the result of a plugin call.
@ -1516,7 +1544,7 @@ function onMessageFromNative(msg) {
}); });
// file: /Users/erisu/git/apache/cordova/cordova-android/cordova-js-src/plugin/android/app.js // file: ../cordova-android/cordova-js-src/plugin/android/app.js
define("cordova/plugin/android/app", function(require, exports, module) { define("cordova/plugin/android/app", function(require, exports, module) {
var exec = require('cordova/exec'); var exec = require('cordova/exec');
@ -1902,7 +1930,6 @@ utils.alert = function (msg) {
window.cordova = require('cordova'); window.cordova = require('cordova');
// file: src/scripts/bootstrap.js // file: src/scripts/bootstrap.js
require('cordova/init'); require('cordova/init');
})(); })();