Update JS snapshot to version 8.2.0-dev (via coho)

This commit is contained in:
Erisu 2019-09-11 13:58:08 +09:00
parent 11f40bd2cc
commit c35a990c09
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
@ -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.2.0-dev';
// 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';
} }
@ -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');
})(); })();