projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git]
/
src
/
content
/
test
/
data
/
indexeddb
/
common.js
diff --git
a/src/content/test/data/indexeddb/common.js
b/src/content/test/data/indexeddb/common.js
index
2e12d44
..
1410a5a
100644
(file)
--- a/
src/content/test/data/indexeddb/common.js
+++ b/
src/content/test/data/indexeddb/common.js
@@
-147,3
+147,9
@@
function indexedDBTest(upgradeCallback, optionalOpenCallback) {
openRequest.onsuccess = optionalOpenCallback;
};
}
+
+if (typeof String.prototype.startsWith !== 'function') {
+ String.prototype.startsWith = function (str) {
+ return this.indexOf(str) === 0;
+ };
+}