diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-29 02:16:06 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-29 02:16:06 +0000 |
commit | b46442d7e2e8cccf5f9bcafb2e1e3b7cf23d424b (patch) | |
tree | e1e0f0d2fc3653d71e93b4cca71cce5ea2cb7223 /content/browser/debugger/manual_tests/resources/primes.js | |
parent | 75a4e77f6c2c21706c09948269c45d98db28757b (diff) | |
download | chromium_src-b46442d7e2e8cccf5f9bcafb2e1e3b7cf23d424b.zip chromium_src-b46442d7e2e8cccf5f9bcafb2e1e3b7cf23d424b.tar.gz chromium_src-b46442d7e2e8cccf5f9bcafb2e1e3b7cf23d424b.tar.bz2 |
Wholesale move of debugger sources to content.
Other references are modified only to point to the new
location. Follow-up changes will move build rules for the debugger
into content.
This adds a somewhat permissive DEPS file to
content/browser/debugger. Follow-up work will whittle that down to
zero dependencies on chrome/.
BUG=84078
TEST=existing
Review URL: http://codereview.chromium.org/7274031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90912 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/debugger/manual_tests/resources/primes.js')
-rw-r--r-- | content/browser/debugger/manual_tests/resources/primes.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/content/browser/debugger/manual_tests/resources/primes.js b/content/browser/debugger/manual_tests/resources/primes.js new file mode 100644 index 0000000..64d38dc --- /dev/null +++ b/content/browser/debugger/manual_tests/resources/primes.js @@ -0,0 +1,13 @@ +function Primes() { + this.primes_ = {}; +} + +Primes.prototype.test = function(p) { + for (var divisor in this.primes_) { + if (p % divisor === 0) return false; + if (divisor * divisor > p) + break; + } + this.primes_[p] = 1; + return true; +} |